Skip to content Skip to sidebar Skip to footer

Referenceerror: Google Is Not Defined - Google Apps Script Error In Mozilla Firefox

I'm creating a Google Site with Google Apps Script 'Enum Sandbox Iframe mode'. In Google Developer Docs, It says, to call a custom function, we need to use google.script.run Sample

Solution 1:

IFRAME mode is not supported in all browsers

This mode imposes many fewer restrictions than the other sandbox modes and runs fastest, but does not work at all in certain older browsers, including Internet Explorer 9

https://developers.google.com/apps-script/reference/html/sandbox-mode

You have to switch to EMULATED or NATIVE for now. IFRAME mode is new, maybe more support will come for this with time.

function doGet() {
  return HtmlService.createHtmlOutputFromFile('index')
      .setSandboxMode(HtmlService.SandboxMode.NATIVE);
}

Post a Comment for "Referenceerror: Google Is Not Defined - Google Apps Script Error In Mozilla Firefox"