mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix improper typeof test for string type
Regression from:
- b12e0e05ea
This broke the ability to provide a link to the actual
asset on the remote server in the asset viewer.
This commit is contained in:
parent
d44988cb46
commit
da9d068243
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ const assetCacheWrite = async function(assetKey, details) {
|
|||
entry = cacheDict[assetKey] = {};
|
||||
}
|
||||
entry.writeTime = entry.readTime = Date.now();
|
||||
if ( options.url === 'string' ) {
|
||||
if ( typeof options.url === 'string' ) {
|
||||
entry.remoteURL = options.url;
|
||||
}
|
||||
µBlock.cacheStorage.set({
|
||||
|
|
|
|||
Loading…
Reference in a new issue