1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +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:
Raymond Hill 2020-12-03 11:52:49 -05:00
parent d44988cb46
commit da9d068243
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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({