about summary refs log tree commit diff stats
path: root/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'src/assets')
-rw-r--r--src/assets/javascripts/services.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 7e0a76a4..6614bf92 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -60,12 +60,12 @@ function regexArray(service, url, config) {
 	return false

 }

 

-function redirect(url, type, initiator) {

+function redirect(url, type, initiator, forceRedirection) {

 	if (type != "main_frame" && type != "sub_frame") return

 	let randomInstance

 	let frontend

 	for (const service in config.services) {

-		if (!options[service].enabled) continue

+		if (!forceRedirection && !options[service].enabled) continue

 		if (config.services[service].embeddable && type != options[service].redirectType && options[service].redirectType != "both") continue

 		if (!config.services[service].embeddable && type != "main_frame") continue

 		// let targets = new RegExp(config.services[service].targets.join("|"), "i")

@@ -407,6 +407,7 @@ function redirect(url, type, initiator) {
 }

 

 function computeService(url, returnFrontend) {

+	console.log(url)

 	return new Promise(resolve => {

 		fetch("/config/config.json")

 			.then(response => response.text())