mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:27: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) {
|
incrementURL: function (count) {
|
||||||
let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/);
|
let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/);
|
||||||
dactyl.assert(matches);
|
dactyl.assert(matches);
|
||||||
oldNum = matches[2];
|
let oldNum = matches[2];
|
||||||
|
|
||||||
// disallow negative numbers as trailing numbers are often proceeded by hyphens
|
// disallow negative numbers as trailing numbers are often proceeded by hyphens
|
||||||
let newNum = String(Math.max(parseInt(oldNum, 10) + count, 0));
|
let newNum = String(Math.max(parseInt(oldNum, 10) + count, 0));
|
||||||
|
|||||||
Reference in New Issue
Block a user