Skip to content

Instantly share code, notes, and snippets.

@littlebtc
Created July 9, 2010 07:04
Show Gist options
  • Select an option

  • Save littlebtc/469170 to your computer and use it in GitHub Desktop.

Select an option

Save littlebtc/469170 to your computer and use it in GitHub Desktop.
const panels = require("panel");
const widgets = require("widget");
exports.main = function () {
let panel = panels.add(panels.Panel({
content: "about:blank",
width: 240,
height: 320,
allow: { script: true },
}));
widgets.add(widgets.Widget({
label: "Plurk",
image: "http://www.plurk.com/favicon.ico",
onClick: function () {
panel.show();
}
}));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment