Skip to content

Commit 066b227

Browse files
committedOct 3, 2021
Add a sw config file
1 parent 7a83ca5 commit 066b227

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎service-worker/config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const APP_URL = self.location.origin + "/file";
2+
const encoder = new TextEncoder();
3+
const decoder = new TextDecoder();
4+
const sigCodes = {
5+
v1: "Encrypted Using Hat.sh",
6+
v2_symmetric: "zDKO6XYXioc",
7+
v2_asymmetric: "hTWKbfoikeg",
8+
};
9+
10+
module.exports = {
11+
APP_URL,
12+
encoder,
13+
decoder,
14+
sigCodes,
15+
};

0 commit comments

Comments
 (0)