PHP Classes
elePHPant
Icontem

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
 

Contents

Class file image Download
{

	$(".button-collapse").sideNav({closeOnClick: true});
    $('.collapsible').collapsible();
    $('select').material_select();


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