package aviso import _ "embed" //go:embed js/push.mjs var pushJS []byte //go:embed js/aviso-sw.js var workerJS []byte // JS is the browser module (js/push.mjs), for the app to serve as a // static asset and import from its page script. func JS() []byte { return pushJS } // WorkerJS is the classic service-worker helper (js/aviso-sw.js), for // the app to serve and load from its own sw.js via importScripts. func WorkerJS() []byte { return workerJS }