From 25ef0913bbd7d19af4e1a8cb75136843d6c41744 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 23 Jan 2019 15:25:04 +0000 Subject: [PATCH] Fix registration nextLink on desktop Another instance of detecting the file: protocol Fixes https://github.com/vector-im/riot-web/issues/8235 --- src/vector/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/index.js b/src/vector/index.js index 30ba87f2a9..4188a14b68 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -140,7 +140,7 @@ function onNewScreen(screen) { // so in that instance, hardcode to use riot.im/app for now instead. function makeRegistrationUrl(params) { let url; - if (window.location.protocol === "file:") { + if (window.location.protocol === "vector:") { url = 'https://riot.im/app/#/register'; } else { url = (