mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02: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
@ -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 New Issue
Block a user