aboutsummaryrefslogtreecommitdiff
path: root/tools/addon-sdk-1.3/packages/api-utils/tests/e10s-samples/adapter-only-e10s-adapter.js
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;
    });
  };
}