Merge pull request #1118 from ethereum/yann300-patch-4

Fix pathName check (for remix-live-alpha instance)
pull/1/head
yann300 7 years ago committed by GitHub
commit 69fc301faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app.js

@ -205,7 +205,7 @@ function run () {
if (window.location.hostname === 'yann300.github.io') {
modalDialogCustom.alert(`This UNSTABLE ALPHA branch of Remix has been moved to http://ethereum.github.io/remix-live-alpha.`)
} else if (window.location.hostname === 'ethereum.github.io' &&
window.location.pathname.indexOf('remix-live-alpha') === 0) {
window.location.pathname.indexOf('/remix-live-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 &&

Loading…
Cancel
Save