Commit 1253b061 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Display a different warning for the alpha website

parent f9e518ac
......@@ -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') {
......
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