diff options
author | Jagua | 2015-09-03 01:11:26 +0900 |
---|---|---|
committer | Jagua | 2015-09-03 01:11:26 +0900 |
commit | dc84195a10f8532132f17658683e9af18b2bc1f5 (patch) | |
tree | 5a62847323b48dbc0946acf15c4a6f5f9abd551c | |
parent | 8d83334c5f48713c7399efd95d8b049a87f21525 (diff) | |
download | vimperator-plugins-dc84195a10f8532132f17658683e9af18b2bc1f5.tar.bz2 |
Dropped let expression for Firefox 41+
-rw-r--r-- | _libly.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -246,9 +246,10 @@ libly.$U = {//{{{ function getPluginPath () { let pluginPath; Error('hoge').stack.split(/\n/).some( - function (s) - let (m = s.match(/@chrome:\/\/liberator\/content\/liberator\.js -> file:\/\/\/(.+):\d+$/)) - (m && (pluginPath = m[1].replace(/\?.*$/, ''))) + function (s) { + let m = s.match(/@chrome:\/\/liberator\/content\/liberator\.js -> file:\/\/\/(.+):\d+$/); + (m && (pluginPath = m[1].replace(/\?.*$/, ''))); + } ); return pluginPath; } |