Skip to content

Commit ff424c0

Browse files
committed
Remove setSandboxMode
1 parent c3d9bdd commit ff424c0

File tree

10 files changed

+12
-27
lines changed

10 files changed

+12
-27
lines changed

docs/cursorInspector/cursorInspector.gs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function onOpen() {
2727
function showSidebar() {
2828
DocumentApp.getUi().showSidebar(
2929
HtmlService.createTemplateFromFile('Sidebar').evaluate()
30-
.setSandboxMode(HtmlService.SandboxMode.NATIVE)
3130
.setTitle('Cursor Inspector')
3231
.setWidth(350));
3332
}

docs/dialog2sidebar/Code.gs

+2-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ function onOpen() {
2929
function showSidebar() {
3030
var page = HtmlService.createTemplateFromFile('Sidebar')
3131
.evaluate()
32-
.setTitle('Sidebar')
33-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
32+
.setTitle('Sidebar');
3433
DocumentApp.getUi().showSidebar(page);
3534
}
3635

@@ -43,8 +42,7 @@ function openDialog() {
4342
var template = HtmlService.createTemplateFromFile('Dialog');
4443
template.dialogId = dialogId;
4544
var page = template.evaluate()
46-
.setTitle('Dialog')
47-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
45+
.setTitle('Dialog');
4846
DocumentApp.getUi().showDialog(page);
4947
return dialogId;
5048
}

forms/notifications/notification.gs

-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ function onInstall(e) {
7676
*/
7777
function showSidebar() {
7878
var ui = HtmlService.createHtmlOutputFromFile('Sidebar')
79-
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
8079
.setTitle('Form Notifications');
8180
FormApp.getUi().showSidebar(ui);
8281
}
@@ -87,7 +86,6 @@ function showSidebar() {
8786
*/
8887
function showAbout() {
8988
var ui = HtmlService.createHtmlOutputFromFile('About')
90-
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
9189
.setWidth(420)
9290
.setHeight(270);
9391
FormApp.getUi().showModalDialog(ui, 'About Form Notifications');

tasks/simpleTasks/simpleTasks.gs

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
*/
2121
function doGet() {
2222
return HtmlService.createTemplateFromFile('page').evaluate()
23-
.setTitle('Simple Tasks')
24-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
23+
.setTitle('Simple Tasks');
2524
}
2625

2726
/**

templates/docs-addon/Code.gs

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ function onInstall(e) {
5151
function showSidebar() {
5252
var ui = HtmlService.createTemplateFromFile('Sidebar')
5353
.evaluate()
54-
.setTitle(SIDEBAR_TITLE)
55-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
54+
.setTitle(SIDEBAR_TITLE);
5655
DocumentApp.getUi().showSidebar(ui);
5756
}
5857

@@ -64,8 +63,7 @@ function showDialog() {
6463
var ui = HtmlService.createTemplateFromFile('Dialog')
6564
.evaluate()
6665
.setWidth(400)
67-
.setHeight(150)
68-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
66+
.setHeight(150);
6967
DocumentApp.getUi().showModalDialog(ui, DIALOG_TITLE);
7068
}
7169

templates/forms-addon/Code.gs

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ function onInstall(e) {
5151
function showSidebar() {
5252
var ui = HtmlService.createTemplateFromFile('Sidebar')
5353
.evaluate()
54-
.setTitle(SIDEBAR_TITLE)
55-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
54+
.setTitle(SIDEBAR_TITLE);
5655
FormApp.getUi().showSidebar(ui);
5756
}
5857

@@ -64,8 +63,7 @@ function showDialog() {
6463
var ui = HtmlService.createTemplateFromFile('Dialog')
6564
.evaluate()
6665
.setWidth(350)
67-
.setHeight(180)
68-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
66+
.setHeight(180);
6967
FormApp.getUi().showModalDialog(ui, DIALOG_TITLE);
7068
}
7169

templates/sheets-addon/Code.gs

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ function onInstall(e) {
5151
function showSidebar() {
5252
var ui = HtmlService.createTemplateFromFile('Sidebar')
5353
.evaluate()
54-
.setTitle(SIDEBAR_TITLE)
55-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
54+
.setTitle(SIDEBAR_TITLE);
5655
SpreadsheetApp.getUi().showSidebar(ui);
5756
}
5857

@@ -64,8 +63,7 @@ function showDialog() {
6463
var ui = HtmlService.createTemplateFromFile('Dialog')
6564
.evaluate()
6665
.setWidth(400)
67-
.setHeight(190)
68-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
66+
.setHeight(190);
6967
SpreadsheetApp.getUi().showModalDialog(ui, DIALOG_TITLE);
7068
}
7169

templates/sheets-import/Auth.gs

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ function authCallback(request) {
6666
}
6767
template.title = title;
6868
return template.evaluate()
69-
.setTitle(title)
70-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
69+
.setTitle(title);
7170
}
7271

7372
/**

templates/sheets-import/Server.gs

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ function showSidebar() {
7575
template.authorizationUrl = service.getAuthorizationUrl();
7676
}
7777
var page = template.evaluate()
78-
.setTitle(SIDEBAR_TITLE)
79-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
78+
.setTitle(SIDEBAR_TITLE);
8079
SpreadsheetApp.getUi().showSidebar(page);
8180
}
8281

templates/web-app/Code.gs

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ function doGet(e) {
3636

3737
// Build and return HTML in IFRAME sandbox mode.
3838
return template.evaluate()
39-
.setTitle('Web App Window Title')
40-
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
39+
.setTitle('Web App Window Title');
4140
}
4241

4342
/**

0 commit comments

Comments
 (0)