aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-13 17:32:28 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-13 17:32:28 -0400
commit17e2f825f4620e31e89a14d72b84a733cd98a277 (patch)
tree5d90598c433d4cb3e4e8bf4a787889549320b7fb /ext/bg/js/settings.js
parentcb236a743081e8ea4809a8a559abf9f0f22e771c (diff)
Add warning message for Mac users about App Nap
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index ba02641b..dc8c2690 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -848,9 +848,9 @@ async function isStoragePeristent() {
async function storageInfoInitialize() {
storagePersistInitialize();
- const {browser} = await apiGetEnvironmentInfo();
- const container = document.querySelector('#storage-info');
- container.setAttribute('data-browser', browser);
+ const {browser, platform} = await apiGetEnvironmentInfo();
+ document.documentElement.dataset.browser = browser;
+ document.documentElement.dataset.operatingSystem = platform.os;
await storageShowInfo();