Web apps running in Google Apps Script in the EMULATED sandbox mode seem to always log out this message: Running in Sandbox mode: EMULATED
.
IE9 has a problem where if you call console.log()
, Javascript will stop executing because the console
object is undefined until you open devTools.
Normally, one can either simply not call console.log, or use a shim like this to avoid this issue:
if(!window.console){window.console={log:function(){},error:function(){}}}
Using a shim like above does not amend my problem (I'm presuming because the Google Apps Script initializes the sandbox and logs the message before sending my page and JS). I know that IE9 is not officially supported by Google but this is what people in my company primarily use. Is there any way to suppress this message, or otherwise get javascript to work on my page?