diff options
Diffstat (limited to 'common/content/browser.js')
-rw-r--r-- | common/content/browser.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/content/browser.js b/common/content/browser.js index 9e9ae0af..cd5f6a72 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -13,7 +13,6 @@ */ const Browser = Module("browser", { }, { - // TODO: support 'nrformats'? -> probably not worth it --mst incrementURL: function (count) { let matches = buffer.URL.match(/(.*?)(\d+)(\D*)$/); dactyl.assert(matches); @@ -122,10 +121,8 @@ const Browser = Module("browser", { } } - if (count < 1) - count = 1; + count = Math.max(count, 1); - // XXX let url = buffer.URL; for (let i = 0; i < count; i++) { if (isDirectory(url)) |