rastrillo / aviso Public

Clone
git clone https://amadan.net/rastrillo/aviso

Plain git — no account needed to clone.

Download

Download this file

1package aviso
2
3import _ "embed"
4
5//go:embed js/push.mjs
6var pushJS []byte
7
8//go:embed js/aviso-sw.js
9var workerJS []byte
10
11// JS is the browser module (js/push.mjs), for the app to serve as a
12// static asset and import from its page script.
13func JS() []byte { return pushJS }
14
15// WorkerJS is the classic service-worker helper (js/aviso-sw.js), for
16// the app to serve and load from its own sw.js via importScripts.
17func WorkerJS() []byte { return workerJS }
18