1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:07:58 +01:00

Add missing 'let'.

--HG--
extra : rebase_source : 42df33554d18feb86662bd5d8a940ca69e13a5aa
This commit is contained in:
Kris Maglione
2010-11-04 10:47:19 -04:00
parent ef6a52f01c
commit 1ba66f6093

View File

@@ -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));