GitShow/yyx990803/register-service-worker
yyx990803

register-service-worker

A script to simplify service worker registration with hooks for common events.

by yyx990803
Star on GitHubForknpm

JavaScript

659 stars59 forks18 contributorsQuiet · 2y agoSince 2018v1.7.2MIT

Meet the team

See all 18 on GitHub →
yyx990803
yyx99080320 contributions
haoqunjiang
haoqunjiang9 contributions
ulivz
ulivz6 contributions
dependabot[bot]Bot
dependabot[bot]5 contributions
alexlanz
alexlanz2 contributions
LinusBorg
LinusBorg2 contributions
vinicius73
vinicius732 contributions
sqal
sqal2 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 6 in progress · Last activity 2y ago
See all on GitHub →
JennerChen
check document.readyState before exec register('workbox.js')OpenIssue

before exec , if is , workbox won't load https://github.com/yyx990803/register-service-worker/blob/master/src/index.js#L43 #68

JennerChen · 1y ago
xiaoxixi6633
Uncaught SyntaxError: Cannot use import statement outside a module (at register-service-worker.js:3:1)OpenIssue

Uncaught SyntaxError: Cannot use import statement outside a module (at register-service-worker.js:3:1) !image !image !image !image !image

xiaoxixi6633 · 2y ago
alivedise
fix: if document is already loaded, window load event would not triggerOpenPR

Bug: If the document is already loaded while running register-service-worker, waitWindowLoad will never trigger.

alivedise · 2y ago

Recent fixes

View closed PRs →
wxf-start
How to Work with GoogleClosedIssue

Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js' failed to load.

wxf-start · 3y ago
j0Shi82
add catches to serviceWorker.ready calls to work around an issue with FireFox options that can actually lead to rejecting the ready PromiseMergedPR

closes #45

j0Shi82 · 4y ago
kopax-polyconseil
Why is emit undefined in unregisterClosedIssue

Hi @yyx990803 and thanks for sharing. I am reading at your code and I try to understand why this is not in the function scope : https://github.com/yyx990803/register-service-worker/blob/756fe7fe956b092b0afc86d55a3fd24f181f4da7/src/index.js#L127 Thanks in advance,

kopax-polyconseil · 4y ago
Structured data for AI agents

Repository: yyx990803/register-service-worker. Description: A script to simplify service worker registration with hooks for common events. Stars: 659, Forks: 59. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.7.2 (5y ago). Open PRs: 6, open issues: 16. Last activity: 2y ago. Community health: 42%. Top contributors: yyx990803, haoqunjiang, ulivz, dependabot[bot], alexlanz, LinusBorg, vinicius73, sqal, bseib, davidyuk and others.

·@ofershap

Replace github.com with gitshow.dev