From da9d068243e9707e39de09421742020c2ea19285 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 3 Dec 2020 11:52:49 -0500 Subject: [PATCH] Fix improper typeof test for string type Regression from: - https://github.com/gorhill/uBlock/commit/b12e0e05ea9d319ba3b6c2b97d9322c347230bd7 This broke the ability to provide a link to the actual asset on the remote server in the asset viewer. --- src/js/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/assets.js b/src/js/assets.js index 09acd95f0..94fc4ce35 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -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({