mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-17 20:11:12 +02:00
fix things to show/hide on each platform
This commit is contained in:
@@ -215,4 +215,9 @@
|
||||
window.chrome.i18n = { getMessage: () => {} };
|
||||
|
||||
window.IS_EXTENSION = !!window.chrome.extension;
|
||||
if (window.IS_EXTENSION) {
|
||||
document.body.classList.add('is-extension');
|
||||
} else {
|
||||
document.body.classList.add('is-app');
|
||||
}
|
||||
})();
|
||||
|
Reference in New Issue
Block a user