Fix: remove suffix check
This commit is contained in:
parent
bbe37adfef
commit
43b912c195
|
@ -270,9 +270,6 @@ function initUsercssInstall() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isUsercss() {
|
function isUsercss() {
|
||||||
if (!/\.user\.(css|styl|less|scss|sass)$/i.test(location.pathname)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!/text\/(css|plain)/.test(document.contentType)) {
|
if (!/text\/(css|plain)/.test(document.contentType)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user