[Pkg-javascript-commits] [less.js] 17/38: support safari extension. Fixes #2358

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.2.0
in repository less.js.

commit 29eb4263fe63cc47961ea7dd6fa2ef8d30d02c6a
Author: Luke Page <luke.a.page at gmail.com>
Date:   Thu Jan 1 21:48:02 2015 +0000

    support safari extension. Fixes #2358
---
 lib/less-browser/add-default-options.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/less-browser/add-default-options.js b/lib/less-browser/add-default-options.js
index 6c0fb7a..c13bada 100644
--- a/lib/less-browser/add-default-options.js
+++ b/lib/less-browser/add-default-options.js
@@ -7,7 +7,7 @@ module.exports = function(window, options) {
     addDataAttr(options, browser.currentScript(window));
 
     if (options.isFileProtocol === undefined) {
-        options.isFileProtocol = /^(file|chrome(-extension)?|resource|qrc|app):/.test(window.location.protocol);
+        options.isFileProtocol = /^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(window.location.protocol);
     }
 
     // Load styles asynchronously (default: false)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list