Skip to content

Instantly share code, notes, and snippets.

@caisui
Created December 6, 2014 01:54
Show Gist options
  • Save caisui/46376d3bb5e56c21e6f7 to your computer and use it in GitHub Desktop.
Save caisui/46376d3bb5e56c21e6f7 to your computer and use it in GitHub Desktop.
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