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
34f6fee4
authored
Dec 06, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
ce9a173f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
mobile/index.html
mobile/index.js
mobile/room/liveRoom.html
mobile/sw.js
mobile/index.html
View file @
34f6fee4
...
@@ -400,7 +400,7 @@
...
@@ -400,7 +400,7 @@
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<script
src=
"layer-v3.1.0/layer/layer.js"
></script>
<!-- <script src="lib/fingerprint2.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"lib/login.js?v=2022120501"
></script>
<script
src=
"lib/login.js?v=2022120501"
></script>
<script
src=
"index.js?v=20221206
08
"
defer=
""
></script>
<script
src=
"index.js?v=20221206
10
"
defer=
""
></script>
<!-- <script src="index.js" defer></script> -->
<!-- <script src="index.js" defer></script> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
<!-- <link rel="manifest" href="manifest.webmanifest" /> -->
...
...
mobile/index.js
View file @
34f6fee4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
if
(
'serviceWorker'
in
navigator
)
{
if
(
'serviceWorker'
in
navigator
)
{
navigator
.
serviceWorker
navigator
.
serviceWorker
.
register
(
'/mobile/sw.js?V=20221206
09
'
)
.
register
(
'/mobile/sw.js?V=20221206
10
'
)
.
then
(()
=>
{
console
.
log
(
'Service Worker Registered'
);
});
.
then
(()
=>
{
console
.
log
(
'Service Worker Registered'
);
});
}
}
...
...
mobile/room/liveRoom.html
View file @
34f6fee4
...
@@ -583,7 +583,7 @@
...
@@ -583,7 +583,7 @@
<!-- <script src="lib/fingerprint2.js"></script> -->
<!-- <script src="lib/fingerprint2.js"></script> -->
<script
src=
"../lib/login.js?v=2022120102"
></script>
<script
src=
"../lib/login.js?v=2022120102"
></script>
<script
src=
"../lib/flv.js"
></script>
<script
src=
"../lib/flv.js"
></script>
<script
src=
"../index.js?v=2022120
501
"
defer=
""
></script>
<script
src=
"../index.js?v=2022120
610
"
defer=
""
></script>
<script>
<script>
$
(
function
(){
$
(
function
(){
...
...
mobile/sw.js
View file @
34f6fee4
self
.
addEventListener
(
'install'
,
(
e
)
=>
{
self
.
addEventListener
(
'install'
,
(
e
)
=>
{
//
e.waitUntil(
e
.
waitUntil
(
//
caches.open('footseen').then((cache) => cache.addAll([
caches
.
open
(
'footseen'
).
then
((
cache
)
=>
cache
.
addAll
([
//
// '/mTest/images/',
// '/mTest/images/',
//
// '/mTest/index.html',
// '/mTest/index.html',
//
// '/mTest/index.js',
// '/mTest/index.js',
//
])),
])),
//
);
);
});
});
// self.addEventListener('fetch', (e) => {
self
.
addEventListener
(
'fetch'
,
(
e
)
=>
{
// console.log(e.request.url);
console
.
log
(
e
.
request
.
url
);
// e.respondWith(
e
.
respondWith
(
// caches.match(e.request).then((response) => response || fetch(e.request)),
caches
.
match
(
e
.
request
).
then
((
response
)
=>
response
||
fetch
(
e
.
request
)),
// );
);
// });
});
\ No newline at end of file
\ 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