getCurrentPosition在Google Apps iFrame上已弃用?

问题描述:

我正在通过Google Apps脚本上的HTML模板运行Google地图。 这意味着整个Web应用程序与创建iFrame中存在如下:getCurrentPosition在Google Apps iFrame上已弃用?

function doGet(e) { 
 
    var template = HtmlService.createTemplateFromFile('index.html'); 
 
    template.action = ScriptApp.getService().getUrl(); 
 
    return template.evaluate().setTitle('Google Map on Apps Script').setFaviconUrl('https://developers.google.com/_static/907a9d4ef3/images/favicon.png').setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); 
 
}

这是从未有过的问题,但现在getCurrentPosition是关于不iFrame中被禁用包括allow =“geolocation”属性。

有谁知道将此属性添加到使用Google Apps Script HTMLService创建的iFrame的方法吗?有没有类似于.setXFrameOptionsMode的东西?我在这里错过了什么?

​​...

apps script support blog要求这项新功能。 您可以为此投票。