aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/generic-page-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-18 17:00:34 -0500
committerGitHub <noreply@github.com>2020-12-18 17:00:34 -0500
commit9beb659b178ab922a4d11a821ed6d2f1bce40f96 (patch)
tree72b34732d3737d123009c287494472d1f56ec486 /ext/bg/js/generic-page-main.js
parent0d0728fac0efa567af4da26aa4954829a6ea21a1 (diff)
Manifest version CSS rules (#1126)
* Add CSS rules for hiding content based on manifest version * Organize other rules
Diffstat (limited to 'ext/bg/js/generic-page-main.js')
-rw-r--r--ext/bg/js/generic-page-main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/bg/js/generic-page-main.js b/ext/bg/js/generic-page-main.js
index 9102fec3..8e1b3c76 100644
--- a/ext/bg/js/generic-page-main.js
+++ b/ext/bg/js/generic-page-main.js
@@ -15,7 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+function setupEnvironmentInfo() {
+ const {manifest_version: manifestVersion} = chrome.runtime.getManifest();
+ document.documentElement.dataset.manifestVersion = `${manifestVersion}`;
+}
+
(() => {
document.querySelector('#content-scroll-focus').focus();
document.documentElement.dataset.loaded = 'true';
+ setupEnvironmentInfo();
})();