mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58:00 +01:00
fix loading of style.js - don't redefine function parameters with let (possibly
a Windows specific SpiderMonkey bug
This commit is contained in:
@@ -129,7 +129,7 @@ function Highlights(name, store, serial)
|
||||
.split("\n").filter(function (s) /\S/.test(s))
|
||||
.forEach(function (style)
|
||||
{
|
||||
let style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+))?(?:,([^,\s]+))?(?:\s+(.*))?/), 1));
|
||||
style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+))?(?:,([^,\s]+))?(?:\s+(.*))?/), 1));
|
||||
highlight[style.class] = style;
|
||||
self.set(style.class);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user