EJSS opening in safari instead of chrome, not opening file:/// address
David Joiner
6 Posts
I'm trying to run the java script version of EJS in MacOS X 10.15.3, and am getting the same issue with version 5.3 or 6. I press play, and despite chrome being my default browser safari opens. When it does, none of the javascript runs, even though I have javascript enabled in the browser.
I suspect a security issue with safari and the the file:/// protocol being used.
How to enable Chrome/Safari/Firefox browser as the preferred Easy JavaScript Simulation editor Preview. select Ejs Options ( right bottom last second icon) Running tab (First) Preview command: open -a "Safari" // MacOSX Example open -a "Google Chrome" // MacOSX Example open -a "FirefoxDeveloperEdition" // MacOSX Example "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" // Windows Example "C:\Program Files\Internet Explorer\iexplore.exe" // Windows Example "C:\Program Files (x86)\Aurora\firefox.exe" // Windows Example google-chrome // Linux Example firefox // Linux Example
Re: EJSS opening in safari instead of chrome, not opening file:/// address -
Wolfgang
192 Posts
If the EJSS Preview option is set to SYSTEM, the simulation should use the default browser for the xhtml file type.
If you want to use Safari, you should also enable Developer Tools in Safari advanced Preferences. Then set the EJSS Display option to: open -a "Safari"
You may get a warning message about the file Protocol the first time EJSS tries to open a simulation page in Safari. Close this warning dialog and run the simulation a section time and it should work.
Finally, always check the browser Console for error messages. Every browser has a console, but it may be hard to access unless you enable developer tools for that browser.