From 4cf9eacc4439d4bf73a69335d572c99d9643a4b1 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 8 Feb 2018 13:31:49 +0000 Subject: [PATCH 1/2] Display a different warning for the alpha website --- src/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 9db3e79058..7bebc9ab44 100644 --- a/src/app.js +++ b/src/app.js @@ -196,7 +196,11 @@ module.exports = App function run () { var self = this - if (window.location.protocol.indexOf('http') === 0 && + if (window.location.hostname === 'ethereum.github.io' && + window.location.pathname.indexOf('remix-ide-alpha') === 0) { + modalDialogCustom.alert(`This instance of the Remix IDE is an UNSTABLE ALPHA branch.\n +Please only use it if you know what you are doing, otherwise visit the stable version at http://remix.ethereum.org.`) + } else if (window.location.protocol.indexOf('http') === 0 && window.location.hostname !== 'remix.ethereum.org' && window.location.hostname !== 'localhost' && window.location.hostname !== '127.0.0.1') { From a7122a72704c78ff4003700fb899642e928d61d9 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 9 Feb 2018 10:02:14 +0000 Subject: [PATCH 2/2] Display another warning for yann300.github.io (redirect users to remix-ide-alpha) --- src/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 7bebc9ab44..6ce62be9c4 100644 --- a/src/app.js +++ b/src/app.js @@ -196,7 +196,9 @@ module.exports = App function run () { var self = this - if (window.location.hostname === 'ethereum.github.io' && + if (window.location.hostname === 'yann300.github.io') { + modalDialogCustom.alert(`This UNSTABLE ALPHA branch of Remix has been moved to http://ethereum.github.io/remix-ide-alpha.`) + } else if (window.location.hostname === 'ethereum.github.io' && window.location.pathname.indexOf('remix-ide-alpha') === 0) { modalDialogCustom.alert(`This instance of the Remix IDE is an UNSTABLE ALPHA branch.\n Please only use it if you know what you are doing, otherwise visit the stable version at http://remix.ethereum.org.`)