mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-01 13:55:51 +01:00
prefer let over var in completion.url
This commit is contained in:
@@ -1605,9 +1605,9 @@ function Completion() //{{{
|
|||||||
// if the 'complete' argument is passed like "h", it temporarily overrides the complete option
|
// if the 'complete' argument is passed like "h", it temporarily overrides the complete option
|
||||||
url: function url(context, complete)
|
url: function url(context, complete)
|
||||||
{
|
{
|
||||||
var numLocationCompletions = 0; // how many async completions did we already return to the caller?
|
let numLocationCompletions = 0; // how many async completions did we already return to the caller?
|
||||||
var start = 0;
|
let start = 0;
|
||||||
var skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator'
|
let skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator'
|
||||||
if (skip)
|
if (skip)
|
||||||
context.advance(skip[0].length);
|
context.advance(skip[0].length);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user