Skip to content

Instantly share code, notes, and snippets.

@lasconic
Created July 25, 2018 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lasconic/0d8c8edd1ce0cc05e2b6e12fa7e102f8 to your computer and use it in GitHub Desktop.
Save lasconic/0d8c8edd1ce0cc05e2b6e12fa7e102f8 to your computer and use it in GitHub Desktop.
<html>
<head>
<title></title>
<script>
function foo() {
console.log("MDL INSTALLED ? " + mscore.isInstalledExtension("mdl"));
console.log("MDLf INSTALLED ? " + mscore.isInstalledExtension("mdlf"));
var div = document.getElementById('content');
div.innerHTML = "MDL INSTALLED ? " + mscore.isInstalledExtension("mdl") + "<br/>"
div.innerHTML += "MDLf INSTALLED ? " + mscore.isInstalledExtension("mdlf") + "<br/>"
div.innerHTML += "mscore version " + mscore.version() + "<br/>"
}
</script>
</head>
<body onload="foo()">
<div id="content">
text
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment