mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs
This commit is contained in:
parent
4bc26a297b
commit
4791a29977
@ -1213,7 +1213,7 @@ class Resource
|
||||
{
|
||||
return this.text !== null;
|
||||
}
|
||||
constructor(url, { styles = [], alwaysPreview: false } = {})
|
||||
constructor(url, { styles = [], alwaysPreview = false } = {})
|
||||
{
|
||||
this.rawUrl = Resource.root + "min/" + url;
|
||||
this.dependencies = [];
|
||||
@ -1227,7 +1227,7 @@ class Resource
|
||||
}
|
||||
get url()
|
||||
{
|
||||
if (this.alwaysPreview)
|
||||
if (typeof offlineData === "undefined" && this.alwaysPreview)
|
||||
{
|
||||
return this.rawUrl.replace("/master/", "/preview/");
|
||||
}
|
||||
|
||||
@ -1213,7 +1213,7 @@ class Resource
|
||||
{
|
||||
return this.text !== null;
|
||||
}
|
||||
constructor(url, { styles = [], alwaysPreview: false } = {})
|
||||
constructor(url, { styles = [], alwaysPreview = false } = {})
|
||||
{
|
||||
this.rawUrl = Resource.root + "min/" + url;
|
||||
this.dependencies = [];
|
||||
@ -1227,7 +1227,7 @@ class Resource
|
||||
}
|
||||
get url()
|
||||
{
|
||||
if (this.alwaysPreview)
|
||||
if (typeof offlineData === "undefined" && this.alwaysPreview)
|
||||
{
|
||||
return this.rawUrl.replace("/master/", "/preview/");
|
||||
}
|
||||
|
||||
@ -1093,7 +1093,7 @@ class Resource
|
||||
{
|
||||
return this.text !== null;
|
||||
}
|
||||
constructor(url, { styles = [], alwaysPreview: false } = {})
|
||||
constructor(url, { styles = [], alwaysPreview = false } = {})
|
||||
{
|
||||
this.rawUrl = Resource.root + "min/" + url;
|
||||
this.dependencies = [];
|
||||
@ -1107,7 +1107,7 @@ class Resource
|
||||
}
|
||||
get url()
|
||||
{
|
||||
if (this.alwaysPreview)
|
||||
if (typeof offlineData === "undefined" && this.alwaysPreview)
|
||||
{
|
||||
return this.rawUrl.replace("/master/", "/preview/");
|
||||
}
|
||||
|
||||
@ -1093,7 +1093,7 @@ class Resource
|
||||
{
|
||||
return this.text !== null;
|
||||
}
|
||||
constructor(url, { styles = [], alwaysPreview: false } = {})
|
||||
constructor(url, { styles = [], alwaysPreview = false } = {})
|
||||
{
|
||||
this.rawUrl = Resource.root + "min/" + url;
|
||||
this.dependencies = [];
|
||||
@ -1107,7 +1107,7 @@ class Resource
|
||||
}
|
||||
get url()
|
||||
{
|
||||
if (this.alwaysPreview)
|
||||
if (typeof offlineData === "undefined" && this.alwaysPreview)
|
||||
{
|
||||
return this.rawUrl.replace("/master/", "/preview/");
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@ export class Resource
|
||||
{
|
||||
return this.text !== null;
|
||||
}
|
||||
constructor(url, { styles = [], alwaysPreview: false } = {})
|
||||
constructor(url, { styles = [], alwaysPreview = false } = {})
|
||||
{
|
||||
this.rawUrl = Resource.root + "min/" + url;
|
||||
this.dependencies = [];
|
||||
@ -18,7 +18,7 @@ export class Resource
|
||||
}
|
||||
get url()
|
||||
{
|
||||
if (this.alwaysPreview)
|
||||
if (typeof offlineData === "undefined" && this.alwaysPreview)
|
||||
{
|
||||
return this.rawUrl.replace("/master/", "/preview/");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user