Skip to content

Instantly share code, notes, and snippets.

@wbamberg
Created January 30, 2014 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbamberg/8722133 to your computer and use it in GitHub Desktop.
Save wbamberg/8722133 to your computer and use it in GitHub Desktop.
require("sdk/preferences/service").set("javascript.options.strict", false);
var { ActionButton } = require('sdk/ui/button/action');
var { Toolbar } = require("sdk/ui/toolbar");
var { Frame } = require("sdk/ui/frame");
var button = ActionButton({
id: "my-button",
label: "my button",
icon: {
"16": "./firefox-16.png",
"32": "./firefox-32.png"
}
});
var frame = new Frame({
url: "./frame.html"
});
var toolbar = Toolbar({
title: "My toolbar",
items: [frame, button]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment