From e9a7640a3f3bb28ac937606a47693a3ac976f804 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 20 Oct 2017 02:13:01 +0300 Subject: [PATCH] apply: recognize moz-extension:// --- content/apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apply.js b/content/apply.js index 0b5601e4..7ddbce3d 100644 --- a/content/apply.js +++ b/content/apply.js @@ -3,7 +3,7 @@ var ID_PREFIX = 'stylus-'; var ROOT = document.documentElement; -var isOwnPage = location.href.startsWith('chrome-extension:'); +var isOwnPage = location.protocol.endsWith('-extension:'); var disableAll = false; var exposeIframes = false; var styleElements = new Map();