简体   繁体   English

Google App脚本警告

[英]Google App Script Warning

I have created an app script using user account 1 and used the script on a Google site. 我已经使用用户帐户1创建了一个应用脚本,并在Google网站上使用了该脚本。 When I view the site using user account 2 , I receive a warning message which can be dismissed. 当我使用用户帐户2查看网站时,我收到一条警告消息,可以将其关闭。 I have made a copy of the same script on the same site, however there is no option to dismiss this script. 我已经在同一站点上制作了相同脚本的副本,但是无法关闭该脚本。 I would like to know what would cause this problem as the new script is an exact copy of the old script. 我想知道什么会导致此问题,因为新脚本是旧脚本的精确副本。

Copy Script http://i.stack.imgur.com/R151l.jpg 复制脚本http://i.stack.imgur.com/R151l.jpg

Original Script http://i.stack.imgur.com/FIyhm.jpg 原始脚本http://i.stack.imgur.com/FIyhm.jpg

If you mean the warning DOES NOT APPEAR then it doesn't show up if you're logged in as the owner of this script (app). 如果您的意思是警告不出现,那么如果您以该脚本(应用程序)的所有者身份登录,则不会显示警告。 If you made the copy from account2 and are viewing it from the same then you won't see it. 如果您是从account2复制的,并且正在从同一账户查看,则您将看不到它。

I have installed Chrome on iPhone 4 and script 1 does not work when I use the following lines to call my html page, however the same script works with Chrome installed on Android and PC. 我已经在iPhone 4上安装了Chrome,当我使用以下代码行调用html页面时,脚本1不起作用,但是相同的脚本可用于在Android和PC上安装的Chrome。

Script1: 脚本1:

 output.setSandboxMode(HtmlService.SandboxMode.NATIVE);

However, when I use the following code, it works. 但是,当我使用以下代码时,它可以工作。 Script 2: 脚本2:

  output.setSandboxMode(HtmlService.SandboxMode.IFRAME);

Now, the problem with script 1 is that I get a warning which is dismissable (This application is created by another user.), with script 2 I cannot dismiss the warning. 现在,脚本1的问题是我收到了一个可忽略的警告(此应用程序是由另一个用户创建的。),对于脚本2,我无法消除该警告。 That is why I want to use script 1 universally. 这就是为什么我要普遍使用脚本1。

Will someone help me know how can I make script 1 work on Chrome for iOS? 有人可以帮我知道如何在iOS版Chrome上运行脚本1吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM