From 94e53360189438984b32d781a3698264f8f1d988 Mon Sep 17 00:00:00 2001 From: eight Date: Mon, 18 Sep 2017 07:39:46 +0800 Subject: [PATCH] Fix: don't set updateUrl to a local file --- content/install-user-css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install-user-css.js b/content/install-user-css.js index 4dc073ed..8897d916 100644 --- a/content/install-user-css.js +++ b/content/install-user-css.js @@ -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 => {