summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-07-11 00:00:00 +0000
committerjahoti <jahoti@tilde.team>2021-07-11 00:00:00 +0000
commit229e86f6086f90f5c132b4a11e5922de899dbb21 (patch)
tree24a7aecf5006bcb8644de74acc5d004aa7dd9418 /common
parentc86bdfcd9d56309faca69b58830cea1fa98870e0 (diff)
downloadbrowser-extension-229e86f6086f90f5c132b4a11e5922de899dbb21.tar.gz
browser-extension-229e86f6086f90f5c132b4a11e5922de899dbb21.zip
Integrate browser.js into exports_init.js, and streamline the result
Diffstat (limited to 'common')
-rw-r--r--common/browser.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/common/browser.js b/common/browser.js
deleted file mode 100644
index e50a121..0000000
--- a/common/browser.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Myext WebExtension API access normalization
- *
- * Copyright (C) 2021 Wojtek Kosior
- * Redistribution terms are gathered in the `copyright' file.
- */
-
-/*
- * This module normalizes access to WebExtension apis between
- * chrome-based and firefox-based browsers.
- */
-
-const is_mozilla = typeof window.browser === "object";
-const is_chrome = !is_mozilla;
-const browser = window[is_chrome ? "chrome" : "browser"];
-
-/*
- * EXPORTS_START
- * EXPORT browser
- * EXPORT is_chrome
- * EXPORT is_mozilla
- * EXPORTS_END
- */