Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1784830
authored
2 years ago
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
c364c1a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
mTest/index.html
mTest/index.js
mTest/sw.js
mTest/index.html
View file @
e1784830
...
...
@@ -399,7 +399,7 @@
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"lib/login.js?v=2022111801"
></script>
<script
src=
"index.js?v=2022112
405
"
defer=
""
></script>
<script
src=
"index.js?v=2022112
901
"
defer=
""
></script>
<!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
...
...
This diff is collapsed.
Click to expand it.
mTest/index.js
View file @
e1784830
...
...
@@ -4,7 +4,7 @@
if
(
'serviceWorker'
in
navigator
)
{
navigator
.
serviceWorker
.
register
(
'/mTest/sw.js?V=2022112
399
'
)
.
register
(
'/mTest/sw.js?V=2022112
901
'
)
.
then
(()
=>
{
console
.
log
(
'Service Worker Registered'
);
});
}
...
...
This diff is collapsed.
Click to expand it.
mTest/sw.js
View file @
e1784830
self
.
addEventListener
(
'install'
,
(
e
)
=>
{
e
.
waitUntil
(
caches
.
open
(
'footseen'
).
then
((
cache
)
=>
cache
.
addAll
([
'/mTest/'
,
'/mTest/index.html'
,
'/mTest/index.js'
,
'/mTest/images/'
,
])),
);
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment