Fix: don't set updateUrl to a local file
This commit is contained in:
parent
90ca2f2d23
commit
94e5336018
|
@ -8,7 +8,7 @@ function install(style) {
|
|||
const request = Object.assign(style, {
|
||||
method: 'saveUsercss',
|
||||
reason: 'update',
|
||||
updateUrl: location.href
|
||||
updateUrl: location.protocol === 'file:' ? null : location.href
|
||||
});
|
||||
return runtimeSend(request)
|
||||
.then(result => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user