mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
5564c25e7f
commit
60f735ba62
2 changed files with 4 additions and 5 deletions
4
sw.js
4
sw.js
|
@ -7,7 +7,7 @@ workbox.setConfig({
|
|||
|
||||
const webSiteRootURL = this.location.href.split('sw.js?')[0];
|
||||
const FALLBACK_HTML_URL = webSiteRootURL + 'offline';
|
||||
const CACHE_NAME = 'avideo-cache-ver-3.4';
|
||||
const CACHE_NAME = 'avideo-cache-ver-3.6';
|
||||
|
||||
const staticAssetsCacheName = CACHE_NAME + '-static-assets';
|
||||
|
||||
|
@ -56,7 +56,7 @@ workbox.routing.registerRoute(
|
|||
request.url.match(/\.map/) ||
|
||||
request.url.match(/\.woff2/));
|
||||
},
|
||||
new workbox.strategies.CacheFirst({
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: staticAssetsCacheName,
|
||||
plugins: [
|
||||
new workbox.cacheableResponse.CacheableResponsePlugin({
|
||||
|
|
|
@ -2696,12 +2696,11 @@ function getCursorPos(input) {
|
|||
function isUserOnline(users_id) {
|
||||
users_id = parseInt(users_id);
|
||||
if (typeof users_id_online === 'undefined' || empty(users_id_online)) {
|
||||
console.log('isUserOnline', users_id);
|
||||
return false;
|
||||
}
|
||||
if (typeof users_id_online[users_id] === 'undefined' || empty(users_id_online[users_id])) {
|
||||
return false;
|
||||
}
|
||||
if (empty(users_id_online[users_id].resourceId)) {
|
||||
console.log('isUserOnline array ', users_id);
|
||||
return false;
|
||||
}
|
||||
return users_id_online[users_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue