(function() { // Every great app starts with a great name (keep it short so that it can fit in the tablet button) var APP_NAME = "GO META"; // Link to your app's HTML file var APP_URL = "https://hifi-content.s3.amazonaws.com/wadewatts/Hackathon%2010-26-2018/hifihack-master/domainList.html"; var APP_ICON = "https://hifi-content.s3.amazonaws.com/wadewatts/Hackathon%2010-26-2018/hifihack-master/appImage.svg"; // Get a reference to the tablet var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system"); // "Install" your cool new app to the tablet // The following lines create a button on the tablet's menu screen var button = tablet.addButton({ icon: APP_ICON, text: APP_NAME }); // =========================================================================================== // Get some domain data // var fetchDomainData = Script.require('./domaindataloader.js').DomainInfoFetch; //fetchDomainData(); // =========================================================================================== // @function - debug logging function log() { print('DEBUG | ' + [].slice.call(arguments).join(' ')); } // =========================================================================================== // When user click the app button, we'll display our app on the tablet screen function onClicked() { tablet.gotoWebScreen(APP_URL); } button.clicked.connect(onClicked); // Provide a way to "uninstall" the app // Here, we write a function called "cleanup" which gets executed when // this script stops running. It'll remove the app button from the tablet. function cleanup() { tablet.removeButton(button); } Script.scriptEnding.connect(cleanup); }());