mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
46a84c54ea
commit
6e4667aa85
4 changed files with 4 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue