parent
9314fa0e8a
commit
387193d347
|
@ -105,11 +105,12 @@ function initPopup(url) {
|
||||||
installed);
|
installed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const u = new URL(url);
|
||||||
$('#find-styles-link').onclick = handleEvent.openURLandHide;
|
$('#find-styles-link').onclick = handleEvent.openURLandHide;
|
||||||
$('#find-styles-link').href +=
|
$('#find-styles-link').href +=
|
||||||
url.startsWith(location.protocol) ?
|
url.startsWith(location.protocol) ? '?search_terms=Stylus' :
|
||||||
'?search_terms=Stylus' :
|
u.protocol === 'file:' ? 'file:' :
|
||||||
'all/' + encodeURIComponent(url.startsWith('file:') ? 'file:' : url);
|
u.hostname.replace(/^www\.|(\.com?)?\.\w+$/g, '').split('.').pop();
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
document.body.classList.add('blocked');
|
document.body.classList.add('blocked');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user