renative
renative copied to clipboard
Does this piece of code inside index.html imply that webOS IPKs are actually compiled as a "hosted web app"?
The emulator doesn't load anything unless I'm also running the web server at the same time. so I was wondering if my interpretation is correct:
var href = 'http://192.168.56.1:8088';
setTimeout( function () {
var iframe = document.getElementById( 'iframe' );
iframe.src = href
iframe.onload = function () {
if ( typeof tizen !== "undefined" ) iframe.contentWindow.tizen = tizen;
if ( typeof webapis !== "undefined" ) iframe.contentWindow.webapis = webapis;
if ( typeof webOS !== "undefined" ) iframe.contentWindow.webOS = webOS;
if ( typeof webOSDev !== "undefined" ) iframe.contentWindow.webOSDev = webOSDev;
}
}, 5000 );
this code is only used in development mode. It provides hot module reload for easy development. If you export your app in production mode it won't have this
Closing as answer has been provided - feel free to reopen if needed