mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
ef6088531a
commit
d011b13d30
2 changed files with 1 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ async function registerSW(prefix) {
|
|||
|
||||
const {serviceWorker} = navigator;
|
||||
const register = serviceWorker.register.bind(serviceWorker);
|
||||
const [e, sw] = await tryToCatch(register,`${prefix}/sw.js`);
|
||||
const [e, sw] = await tryToCatch(register, `${prefix}/sw.js`);
|
||||
|
||||
if (e)
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,6 @@ test('sw: register: registerSW: https self-signed', async (t, {location, navigat
|
|||
t.end();
|
||||
});
|
||||
|
||||
|
||||
test('sw: register: registerSW', async (t, {location, navigator}) => {
|
||||
location.hostname = 'localhost';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue