Skip to content

Commit 8a3fbf3

Browse files
committed
fix(adguard-api): Fix "read property 'url' of undefined" issue
1 parent 67c7265 commit 8a3fbf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adguard/adguard-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11257,7 +11257,7 @@
1125711257
// Gets tab metadata
1125811258
var getTabMetadata = function (tabId, key) {
1125911259
var tab = tabs[tabId];
11260-
if (tab.url != undefined && tab.url.startWith(cloudopt.getExtUrl()) && key == "frameWhiteListRule") {
11260+
if (tab != undefined && tab.url != undefined && tab.url.startWith(cloudopt.getExtUrl()) && key == "frameWhiteListRule") {
1126111261
return {
1126211262
filterId: 100,
1126311263
isRegexRule: false,
@@ -17125,7 +17125,7 @@
1712517125
* @param loadCallback
1712617126
*/
1712717127
var processAbpSubscriptionUrl = function (subscriptionUrl, loadCallback) {
17128-
17128+
1712917129
var filterMetadata = findFilterMetadataBySubscriptionUrl(subscriptionUrl);
1713017130

1713117131
if (filterMetadata) {

0 commit comments

Comments
 (0)