From 88431d05c12111b738b6270a0853a81a25c67d16 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 1 Jan 2017 17:47:38 +0530 Subject: [PATCH] final slash --- src/eventPage.js | 5 +++++ src/script.js | 4 ++-- src/style.css | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/eventPage.js b/src/eventPage.js index 678b323..6e40f37 100644 --- a/src/eventPage.js +++ b/src/eventPage.js @@ -32,4 +32,9 @@ chrome.runtime.onInstalled.addListener(function callback (details) { if (details.reason === 'install') { openApp(); } + if (details.reason === 'update') { + if ((details.previousVersion + '').indexOf('1.') === 0) { + openApp(); + } + } }); \ No newline at end of file diff --git a/src/script.js b/src/script.js index 9288b47..95732f6 100644 --- a/src/script.js +++ b/src/script.js @@ -9,7 +9,7 @@ settingsBtn, onboardModal, notificationsBtn */ /* eslint-enable no-extra-semi */ var scope = scope || {}; - var version = '1.7.1'; + var version = '2.0.0'; if (window.DEBUG) { window.scope = scope; @@ -715,7 +715,7 @@ settingsBtn, onboardModal, notificationsBtn */ layoutBtn3.addEventListener('click', function () { saveSetting('layoutMode', 3); toggleLayout(3); return false; }); utils.onButtonClick(helpBtn, function () { - onboardModal.classList.toggle('is-modal-visible'); + helpModal.classList.toggle('is-modal-visible'); document.body.classList[onboardModal.classList.contains('is-modal-visible') ? 'add' : 'remove']('overlay-visible'); trackEvent('ui', 'helpButtonClick'); }); diff --git a/src/style.css b/src/style.css index cec0aa8..0fde040 100644 --- a/src/style.css +++ b/src/style.css @@ -480,14 +480,14 @@ select, input[type="text"], textarea { } } .notifications-btn.has-new { - animation: shake 10s linear infinite; + animation: shake 7s linear infinite; transform-origin: 50% 10px; } .notifications-btn__dot { position: absolute; right: 1; top: -2px; - background: #2fbe3d; + background: #31fe45; border-radius: 50%; width: 12px; height: 12px;