Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var widget = require('widget').Widget({
- label: 'Settings',
- id: 'settings',
- //panel: text_entry
- contentURL: data.url('images/stgfavicon.ico'),
- contentScriptFile: data.url('scripts/submit.js'),
- onClick: function() {
- tabs.open(data.url('forms/settings.html'));
- }
- });
- tabs.open({
- url: data.url('forms/settings.html'),
- onOpen: function onOpen(tab) {
- tab.attach({ contentScriptFile: data.url('scripts/submit.js'); });
- }
- });
Add Comment
Please, Sign In to add comment