From 3550446f5b8845979f7a44920dfe6eb337e10347 Mon Sep 17 00:00:00 2001 From: dimden <26517362+dimdenGD@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:05:40 +0300 Subject: [PATCH] dont show modal --- layouts/home/script.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/layouts/home/script.js b/layouts/home/script.js index 18badae4..860b847f 100644 --- a/layouts/home/script.js +++ b/layouts/home/script.js @@ -77,23 +77,23 @@ setTimeout(() => { data.lastVersion.split('.').slice(0, data.lastVersion.split('.').length <= 3 ? 100 : -1).join('.') !== chrome.runtime.getManifest().version.split('.').slice(0, chrome.runtime.getManifest().version.split('.').length <= 3 ? 100 : -1).join('.') ) { let opened = Date.now(); - createModal(html` -

(OldTwitter) ${LOC.new_version.message} - ${chrome.runtime.getManifest().version}

- - - - `, 'changelog-modal', () => {}, () => Date.now() - opened > 1250); - let changelog = document.getElementById('changelog'); - let text = changelog.innerText; - let lang = LANGUAGE ? LANGUAGE : navigator.language ? navigator.language : "en"; - if(!lang.startsWith('en')) { - changelog.innerHTML += html`${LOC.view_translation.message}`; - changelog.querySelector('.tweet-translate').addEventListener('click', () => { - openInNewTab('https://translate.google.com/?sl=en&tl=' + lang + '&text=' + encodeURIComponent(text) + '&op=translate'); - }); - } + // createModal(html` + //

(OldTwitter) ${LOC.new_version.message} - ${chrome.runtime.getManifest().version}

+ // + // + // + // `, 'changelog-modal', () => {}, () => Date.now() - opened > 1250); + // let changelog = document.getElementById('changelog'); + // let text = changelog.innerText; + // let lang = LANGUAGE ? LANGUAGE : navigator.language ? navigator.language : "en"; + // if(!lang.startsWith('en')) { + // changelog.innerHTML += html`${LOC.view_translation.message}`; + // changelog.querySelector('.tweet-translate').addEventListener('click', () => { + // openInNewTab('https://translate.google.com/?sl=en&tl=' + lang + '&text=' + encodeURIComponent(text) + '&op=translate'); + // }); + // } chrome.storage.local.set({lastVersion: chrome.runtime.getManifest().version}); } else { if(!data.nextPlug) {