Skip to content

Commit

Permalink
Display a different warning for the alpha website
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Feb 8, 2018
1 parent f9e518a commit 1253b06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 1253b06

Please sign in to comment.