mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:07:58 +01:00
Add missing 'let'.
--HG-- extra : rebase_source : 42df33554d18feb86662bd5d8a940ca69e13a5aa
This commit is contained in:
@@ -27,7 +27,7 @@ const Browser = Module("browser", {
|
||||
incrementURL: function (count) {
|
||||
let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/);
|
||||
dactyl.assert(matches);
|
||||
oldNum = matches[2];
|
||||
let oldNum = matches[2];
|
||||
|
||||
// disallow negative numbers as trailing numbers are often proceeded by hyphens
|
||||
let newNum = String(Math.max(parseInt(oldNum, 10) + count, 0));
|
||||
|
||||
Reference in New Issue
Block a user