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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base href="app://./" /> | |
<meta http-equiv="Content-Security-Policy" content="script-src 'self' app:; object-src 'self' app:;"> | |
<script type="module" src="./module.js"></script> | |
</head> | |
<body> | |
Check the console! |
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
/** | |
* GET contents of a URL | |
* @access private | |
* @param {string} url - url to get | |
* @param {function} error - function to call if there is an error | |
* @param {function} callback - function to call if success | |
* @returns {void} | |
*/ | |
function httpGet(url, error, callback) { |