renative icon indicating copy to clipboard operation
renative copied to clipboard

Does this piece of code inside index.html imply that webOS IPKs are actually compiled as a "hosted web app"?

Open socialweb-iaraya opened this issue 3 years ago • 1 comments

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 );

socialweb-iaraya avatar Aug 10 '22 01:08 socialweb-iaraya

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

mihaiblaga89 avatar Aug 19 '22 21:08 mihaiblaga89

Closing as answer has been provided - feel free to reopen if needed

GabrieleKaceviciute avatar Jul 21 '23 08:07 GabrieleKaceviciute