PHP Classes

File: public/js/main.js

Recommend this page to a friend!
  Classes of Bill Rocha  >  phatto  >  public/js/main.js  >  Download  
File: public/js/main.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: phatto
Register a service worker for PHP based PWA
Author: By
Last change:
Date: 1 year ago
Size: 324 bytes


Class file image Download

	$(".button-collapse").sideNav({closeOnClick: true});

    // Serviceworker register
    if ('serviceWorker' in navigator) {
    	navigator.serviceWorker.register(location.origin+'/sw.js').then(function(){console.log('[SWORKER registered]')});