blob: cfbfc92bf5c0e862346d796338451e9b52031d2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
if (this.chrome) {
exports.use = function(a, b) {
return chrome.call("superpower", a, b);
};
} else {
exports.register = function(addon) {
addon.registerCall("superpower", function(name, a, b) {
return "hello " + a + " " + b;
});
};
}
|