Created
December 19, 2019 19:17
-
-
Save jwosty/239408aaffd106a26dc2161f86caa641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf8"/> | |
<script> | |
isInterstellar = (typeof(window.interstellarBridge) !== "undefined"); | |
</script> | |
</head> | |
<body> | |
<h1>This webpage is running in <span id="host" /></h1> | |
<script> | |
if (isInterstellar) { | |
document.getElementById("host").innerHTML = "an Interstellar application"; | |
} else { | |
document.getElementById("host").innerHTML = "a vanilla web browser"; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment