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
571be93e
authored
Dec 05, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
12013573
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
mTest/index.html
mTest/index.js
mTest/room/liveRoom.html
mTest/sw.js
mTest/index.html
View file @
571be93e
...
...
@@ -398,7 +398,7 @@
</body>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"lib/login.js?v=20221
118
01"
></script>
<script
src=
"lib/login.js?v=20221
205
01"
></script>
<script
src=
"index.js?v=2022112903"
defer=
""
></script>
<!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
...
...
mTest/index.js
View file @
571be93e
...
...
@@ -4,7 +4,7 @@
if
(
'serviceWorker'
in
navigator
)
{
navigator
.
serviceWorker
.
register
(
'/mTest/sw.js?V=20221
12903
'
)
.
register
(
'/mTest/sw.js?V=20221
20501
'
)
.
then
(()
=>
{
console
.
log
(
'Service Worker Registered'
);
});
}
...
...
mTest/room/liveRoom.html
View file @
571be93e
...
...
@@ -582,7 +582,7 @@
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"../lib/login.js?v=2022120102"
></script>
<script
src=
"../lib/flv.js"
></script>
<script
src=
"../index.js?v=20221
12405
"
defer=
""
></script>
<script
src=
"../index.js?v=20221
20501
"
defer=
""
></script>
<script>
$
(
function
(){
...
...
mTest/sw.js
View file @
571be93e
...
...
@@ -8,9 +8,9 @@ self.addEventListener('install', (e) => {
// );
});
self
.
addEventListener
(
'fetch'
,
(
e
)
=>
{
// console.log(e.request.url);
e
.
respondWith
(
caches
.
match
(
e
.
request
).
then
((
response
)
=>
response
||
fetch
(
e
.
request
)),
);
});
\ No newline at end of file
// self.addEventListener('fetch', (e) => {
// // console.log(e.request.url);
// e.respondWith(
// caches.match(e.request).then((response) => response || fetch(e.request)),
// );
// });
\ No newline at end of file
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