From 5e3efb3df66ffdcc5951557522063a477576f277 Mon Sep 17 00:00:00 2001 From: Jason Barnabe Date: Sun, 8 Feb 2015 22:25:35 -0600 Subject: [PATCH] Apply styles to Stylish pages --- background.js | 4 ++-- edit.html | 1 + manage.html | 1 + popup.html | 1 + popup.js | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 2bb02a8d..8fbffe2a 100644 --- a/background.js +++ b/background.js @@ -144,8 +144,8 @@ function getApplicableSections(style, url) { } function sectionAppliesToUrl(section, url) { - // only http, https, and file allowed - if (url.indexOf("http") != 0 && url.indexOf("file") != 0) { + // only http, https, file, and chrome-extension allowed + if (url.indexOf("http") != 0 && url.indexOf("file") != 0 && url.indexOf("chrome-extension") != 0) { return false; } if (!section.urls && !section.domains && !section.urlPrefixes && !section.regexps) { diff --git a/edit.html b/edit.html index 4effcdc5..ebfadde4 100644 --- a/edit.html +++ b/edit.html @@ -89,6 +89,7 @@ +