diff options
author | ManeraKai <manerakai@protonmail.com> | 2023-07-22 13:14:35 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2023-07-22 13:14:41 +0300 |
commit | 16e4473a2c78518e291daac68889dcb0ce9e81bd (patch) | |
tree | 0a5c10fe98b55f39eb2ad6fa7b180cd8146d480c /src/assets | |
parent | Fixed bug in medium https://github.com/libredirect/browser_extension/issues/764 (diff) | |
download | libredirect-16e4473a2c78518e291daac68889dcb0ce9e81bd.zip |
Hopefully fixing https://github.com/libredirect/browser_extension/issues/765
Diffstat (limited to 'src/assets')
-rw-r--r-- | src/assets/javascripts/services.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index d0d85acd..9d66e63d 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -58,13 +58,6 @@ function redirect(url, type, initiator, forceRedirection) { frontend = options[service].frontend - if ( - config.services[service].embeddable && - type != options[service].redirectType && options[service].redirectType != "both" - ) { - if (options[service].unsupportedUrls == 'block') return 'CANCEL' - return - } if (config.services[service].frontends[frontend].desktopApp && type != "main_frame" && options[service].redirectType != "main_frame") frontend = options[service].embedFrontend @@ -75,6 +68,14 @@ function redirect(url, type, initiator, forceRedirection) { continue } + if ( + config.services[service].embeddable && + type != options[service].redirectType && options[service].redirectType != "both" + ) { + if (options[service].unsupportedUrls == 'block') return 'CANCEL' + return + } + let instanceList = options[frontend] if (instanceList === undefined) break if (instanceList.length === 0) return null |