1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-09 16:06:21 +02:00

final slash

This commit is contained in:
Kushagra Gour
2017-01-01 17:47:38 +05:30
parent a00bd0cc3e
commit 88431d05c1
3 changed files with 9 additions and 4 deletions

View File

@ -32,4 +32,9 @@ chrome.runtime.onInstalled.addListener(function callback (details) {
if (details.reason === 'install') { if (details.reason === 'install') {
openApp(); openApp();
} }
if (details.reason === 'update') {
if ((details.previousVersion + '').indexOf('1.') === 0) {
openApp();
}
}
}); });

View File

@ -9,7 +9,7 @@ settingsBtn, onboardModal, notificationsBtn */
/* eslint-enable no-extra-semi */ /* eslint-enable no-extra-semi */
var scope = scope || {}; var scope = scope || {};
var version = '1.7.1'; var version = '2.0.0';
if (window.DEBUG) { if (window.DEBUG) {
window.scope = scope; window.scope = scope;
@ -715,7 +715,7 @@ settingsBtn, onboardModal, notificationsBtn */
layoutBtn3.addEventListener('click', function () { saveSetting('layoutMode', 3); toggleLayout(3); return false; }); layoutBtn3.addEventListener('click', function () { saveSetting('layoutMode', 3); toggleLayout(3); return false; });
utils.onButtonClick(helpBtn, function () { 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'); document.body.classList[onboardModal.classList.contains('is-modal-visible') ? 'add' : 'remove']('overlay-visible');
trackEvent('ui', 'helpButtonClick'); trackEvent('ui', 'helpButtonClick');
}); });

View File

@ -480,14 +480,14 @@ select, input[type="text"], textarea {
} }
} }
.notifications-btn.has-new { .notifications-btn.has-new {
animation: shake 10s linear infinite; animation: shake 7s linear infinite;
transform-origin: 50% 10px; transform-origin: 50% 10px;
} }
.notifications-btn__dot { .notifications-btn__dot {
position: absolute; position: absolute;
right: 1; right: 1;
top: -2px; top: -2px;
background: #2fbe3d; background: #31fe45;
border-radius: 50%; border-radius: 50%;
width: 12px; width: 12px;
height: 12px; height: 12px;