simulator
is used to refer to the main window (the one with the address bar for loading applications)simulation
is used to refer to a simulated application's windowindex.html
in it or an HTML file in the main simulator interfacewriteJsonToFile
writes in the same directory as the loaded HTML filelocalStorage
data is isolated on a per origin basis AND the origin of all URLs using the file:
protocol is file://
, data separation cannot be achieved with this protocol. If this is a concern for you, use the http protocol instead.file:///home/username/project/super-app/index.html
file:///d:/super-app/index.html
http://localhost:3000
https://super.remote.app
simulator:
URLs resemble file:
URLs, these do benefit from separation of localStorage
data (as the origin is determined to be simulator://app-name
).simulator://super-app
simulator://super-duper-app
Simulator <your-url>