Created
January 30, 2014 23:12
-
-
Save wbamberg/8722133 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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