diff --git a/src/index.html b/src/index.html index 6435103..c0af7c1 100644 --- a/src/index.html +++ b/src/index.html @@ -88,13 +88,13 @@ Open - + Login/Signup Logout - +
@@ -201,7 +201,7 @@ - + diff --git a/src/style.css b/src/style.css index 725a8f6..fa4e389 100644 --- a/src/style.css +++ b/src/style.css @@ -998,6 +998,9 @@ body > #demo-frame { padding: 2px; font-size: 10px; } +.is-extension .web-maker-with-tag:after { + display: none; +} .social-login-btn--github { background: #656B6F; } @@ -1011,7 +1014,9 @@ body > #demo-frame { } body.is-logged-in .hide-on-login, -body:not(.is-logged-in) .hide-on-logout { +body:not(.is-logged-in) .hide-on-logout, +body:not(.is-extension) .show-when-extension, +body:not(.is-app) .show-when-app { display: none; } diff --git a/src/utils.js b/src/utils.js index 43c1042..4570ce8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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'); + } })();