aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/platforms')
-rw-r--r--app/scripts/platforms/extension.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/scripts/platforms/extension.js b/app/scripts/platforms/extension.js
new file mode 100644
index 000000000..cbb35768e
--- /dev/null
+++ b/app/scripts/platforms/extension.js
@@ -0,0 +1,19 @@
+const extension = require('extensionizer')
+
+class ExtensionPlatform {
+
+ //
+ // Public
+ //
+
+ reload () {
+ extension.runtime.reload()
+ }
+
+ openWindow ({ url }) {
+ extension.tabs.create({ url })
+ }
+
+}
+
+module.exports = ExtensionPlatform