mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
![github-actions[bot]](/assets/img/avatar_default.png)
* Squash merge develop into master * feat: add automated production release workflow * feat: add Gitflow workflow for syncing branches * ci: update workflow runner to latest ubuntu version * feat: enable buf.build publishing on master and develop branches --------- Co-authored-by: Prad Nukala <prad@sonr.io>
23 lines
360 B
Go
23 lines
360 B
Go
package vfs
|
|
|
|
import (
|
|
_ "embed"
|
|
|
|
"github.com/ipfs/boxo/files"
|
|
)
|
|
|
|
//go:embed dwn.wasm
|
|
var dwnWasmData []byte
|
|
|
|
//go:embed sw.js
|
|
var swJSData []byte
|
|
|
|
func DWNWasmFile() files.Node {
|
|
return files.NewBytesFile(dwnWasmData)
|
|
}
|
|
|
|
// Use ServiceWorkerJS template to generate the service worker file
|
|
func SWJSFile() files.Node {
|
|
return files.NewBytesFile(swJSData)
|
|
}
|