Unverified Commit 4c47a3f1 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1042 from ethereum/outdated-for-alpha

Display a different warning for the alpha website
parents 54e161d2 e915db53
...@@ -196,7 +196,13 @@ module.exports = App ...@@ -196,7 +196,13 @@ module.exports = App
function run () { function run () {
var self = this var self = this
if (window.location.protocol.indexOf('http') === 0 && 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.`)
} else if (window.location.protocol.indexOf('http') === 0 &&
window.location.hostname !== 'remix.ethereum.org' && window.location.hostname !== 'remix.ethereum.org' &&
window.location.hostname !== 'localhost' && window.location.hostname !== 'localhost' &&
window.location.hostname !== '127.0.0.1') { window.location.hostname !== '127.0.0.1') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment