mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 22:04:11 +01:00
Fix live update issues.
This commit is contained in:
@@ -864,7 +864,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
*/
|
||||
isDactyl: Class.memoize(function () {
|
||||
let base = util.regexp.escape(Components.stack.filename.replace(/[^\/]+$/, ""));
|
||||
let re = RegExp("^(resource://dactyl|" + base + ")\\S+( -> resource://dactyl(?!-content/eval.js)\\S+)?$");
|
||||
let re = RegExp("^(?:.* -> )?(?:resource://dactyl(?!-content/eval.js)|" + base + ")\\S+$");
|
||||
return function isDactyl(frame) re.test(frame.filename);
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user