What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 20:01:23
service worker.js
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.or... Add solution -
Javascript 2021-10-27 06:01:13
import firebase cloud messaging web
import ReactDOM from "react-dom";import App from "./App";if ("serviceWorker" in navigator) { navigator.serviceWorker .register("./firebase-messaging-sw.js") .then(function(registration) { console.log(&qu... Add solution -
Javascript 2021-10-09 20:27:06
browser local notification
var $status = document.getElementById('status'); if ('Notification' in window) { $status.innerText = Notification.permission; } function requestPermission() { if (!('Notification' in window)) { alert('Notification API not supported!'); retur... Add solution -
Javascript 2021-09-27 12:55:06
service worker js example
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.or... Add solution
Best helpers
Rocky DeHart
+5
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Tammy Lin
+5
Flyeogh
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5