Created
December 6, 2014 01:54
-
-
Save caisui/46376d3bb5e56c21e6f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/_libly.js b/_libly.js | |
index 9626b54..5a5d583 100644 | |
--- a/_libly.js | |
+++ b/_libly.js | |
@@ -247,7 +247,7 @@ libly.$U = {//{{{ | |
let pluginPath; | |
Error('hoge').stack.split(/\n/).some( | |
function (s) | |
- let (m = s.match(/-> liberator:\/\/template\/chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) | |
+ let (m = s.match(/(?:-> liberator:\/\/template\/)?chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) | |
(m && (pluginPath = m[1].replace(/\?.*$/, ''))) | |
); | |
return pluginPath; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment