registerServiceWorker

fun registerServiceWorker(jsFileName: String = "serviceWorker.js")

Call this function at the beginning of your main() function to enable the PWA functionality of the appFrame component by registering your serviceWorker.js file.

Parameters

jsFileName

path to your serviceWorker.js file to load