flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.81k stars 180 forks source link

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

Closed socialweb-iaraya closed 1 year ago

socialweb-iaraya commented 2 years ago

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 );
mihaiblaga89 commented 2 years ago

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

GabrieleKaceviciute commented 1 year ago

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