From bc5554f5f60dfd025f499905a6daf84a18882948 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 22 Dec 2017 14:58:44 +0100 Subject: [PATCH] Display an error when visiting the bounce app without href --- www/bounce/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/bounce/main.js b/www/bounce/main.js index 5b122f074..edb4f029c 100644 --- a/www/bounce/main.js +++ b/www/bounce/main.js @@ -5,7 +5,10 @@ define(['/api/config'], function (ApiConfig) { return; } var bounceTo = decodeURIComponent(window.location.hash.slice(1)); - if (!bounceTo) { return; } + if (!bounceTo) { + window.alert('The bounce application must only be used with a valid href to visit'); + return; + } window.opener = null; window.location.href = bounceTo; });