forked from scratchfoundation/scratch-gui
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build for fix-pwa (79a81f4) fix: pwa
- Loading branch information
1 parent
6f7eac0
commit 8fba337
Showing
1,722 changed files
with
76,427 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="google" value="notranslate"><link rel="shortcut icon" href="static/favicon.ico"><title>Smalruby: Blocks Only Example</title><script src="static/javascripts/setup-opal.js"></script><style><!-- | ||
.ruby-error { | ||
background-color: pink; | ||
position: absolute; | ||
z-index: 3; | ||
} | ||
--></style><script defer="defer" src="blocksonly.js"></script></head><body><script>if ('serviceWorker' in navigator) { | ||
window.addEventListener('load', function () { | ||
navigator.serviceWorker.register('./service-worker.js').then(function (registration) { | ||
console.log('PWA worker registration successful', registration.scope); | ||
}, function (err) { | ||
console.log('PWA worker registration failed', err); | ||
}).catch(function (err) { | ||
console.log(err); | ||
}); | ||
}); | ||
} else { | ||
console.log('Service Worker is not supported by browser.'); | ||
}</script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.