I’m running a self hosted html app via IBIS for testing, but the app will be hosted on metrological store. (actually the test app is, and its failing their QA saying its not exiting)
I’ve even tried this hoping one would catch, to no avail.
If it runs on the metro app store this will only work when running through widgets.metrological.com, as it needs the $Badger API that the store automatically initializes.
Running this self hosted will not have that layer inserted and thus the app doesn’t know what to do when you call exit.
FWIW window.close() is a browser API, albeit I agree it would be nice if that works. From a browser perspective you would still need to call the respective Firebolt (or $badger in case of a legacy setup) API to signal to the system you want to exit out. As a result of that something external will shut down the browser for you.
The logic that integrates to the $badger layer will automatically work when you run the app through the metro app store (granted its proper plugin is configured for Comcast for that environment).
Still, I’m extremely confused why metrological QA is saying “fail: app doesn’t exit properly”, however that doesn’t seem like a coding issue at this point, if it really is an issue.
Hi @drewdub . Lightning works as an interface so in theory using their exit method should do the trick. However, if it’s not working, you should use $badger/firebolt’s exit method instead.