Hi Katya,
Sorry, I know how to show without mobile frame. I meant what exact does it do. I see that it takes away the frame from the app, but why is it necessary to do this? Does it help anyway with the debugging?
As for the error.
Does it work the second time because it still has a localstorage form the previous instance and therefore doesn't throw an error?
Does the local storage clear automatically everytime you close the app, or do I need to add it manually with "localStorage.clear() ".
And lastly does this mean that I must I am calling the localstorage in JS BEFORE i am actually setting the localstorage?
Thanks again for the help!