diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 5d47ab07..95ce0d0c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -10,7 +10,7 @@ jobs: matrix: node-version: - 16.x - - 17.x + - 18.x steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} diff --git a/client/key/vim/index.js b/client/key/vim/index.js index 7b781057..a0831773 100644 --- a/client/key/vim/index.js +++ b/client/key/vim/index.js @@ -91,6 +91,7 @@ function setCurrent(sibling, {count, isVisual, isDelete}) { select(current); const position = `${sibling}Sibling`; + for (let i = 0; i < count; i++) { const next = current[position]; diff --git a/client/modules/view/index.js b/client/modules/view/index.js index 44fb3384..be765bd4 100644 --- a/client/modules/view/index.js +++ b/client/modules/view/index.js @@ -225,6 +225,7 @@ function initConfig(options) { return config; const names = Object.keys(options); + for (const name of names) { const isConfig = Boolean(config[name]); const item = options[name]; diff --git a/client/sw/register.js b/client/sw/register.js index 518bceff..3f99395b 100644 --- a/client/sw/register.js +++ b/client/sw/register.js @@ -19,6 +19,7 @@ async function registerSW(prefix) { return await navigator.serviceWorker.register(`${prefix}/sw.js`); } + async function unregisterSW(prefix) { const reg = await registerSW(prefix); reg?.unregister(prefix);