[READ-ONLY] Mirror of https://github.com/probablykasper/taskler. Simple text editor for your New Tab page taskler.kasper.space
browser-extension chrome chrome-extension editor extension firefox firefox-addon firefox-extension notes
0

Configure Feed

Select the types of activity you want to include in your feed.

Updated chrome version check

Kasper (Feb 3, 2019, 7:55 PM +0100) 205b8e22 aa81b62e

+5 -12
+5 -12
src/index.js
··· 176 176 const body = document.querySelector('body') 177 177 const isExtension = body.dataset.isExtension === 'true' 178 178 if (!isExtension) { 179 - // Opera 8.0+ 180 - // const isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0 179 + // browser version check: 180 + // https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser/9851769 181 + 181 182 // Firefox 1.0+ 182 183 const isFirefox = typeof InstallTrigger !== 'undefined'; 183 - // Safari 3.0+ "[object HTMLElementConstructor]" 184 - // const isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification)) 185 - // Internet Explorer 6-11 186 - // const isIE = /*@cc_on!@*/false || !!document.documentMode 187 - // Edge 20+ 188 - // const isEdge = !isIE && !!window.StyleMedia 189 - // Chrome 1+ 190 - const isChrome = !!window.chrome && !!window.chrome.webstore 191 - // Blink engine detection 192 - // const isBlink = (isChrome || isOpera) && !!window.CSS 184 + // Chrome 1-71 185 + const isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime); 193 186 194 187 if (isChrome) document.getElementById('chrome-extension-icon').classList.add('visible') 195 188 if (isFirefox) document.getElementById('firefox-extension-icon').classList.add('visible')