Skip to content

Commit dadb85d

Browse files
author
Eric Koleda
committed
Updated to use new IFRAME sandboxing mode.
1 parent b1b85d0 commit dadb85d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

simple_tasks/Code.gs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
function doGet() {
2020
return HtmlService.createTemplateFromFile('Page').evaluate()
2121
.setTitle('Simple Tasks')
22-
.setSandboxMode(HtmlService.SandboxMode.NATIVE);
22+
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
2323
}
2424

2525
/**

simple_tasks/JavaScript.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Load the jQuery and jQuery UI libraries. -->
2-
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
3-
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.min.js"></script>
2+
<script src="https://code.jquery.com/jquery-1.8.3.min.js"></script>
3+
<script src="https://code.jquery.com/ui/1.10.0/jquery-ui.min.js"></script>
44

55
<!-- Custom client-side JavaScript code. -->
66
<script>

simple_tasks/Page.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
14
<?!= HtmlService.createHtmlOutputFromFile('Stylesheet').getContent(); ?>
5+
</head>
6+
<body>
27

38
<h1>Simple Tasks</h1>
49
<p>
@@ -26,3 +31,6 @@ <h1>Simple Tasks</h1>
2631
</fieldset>
2732

2833
<?!= HtmlService.createHtmlOutputFromFile('JavaScript').getContent(); ?>
34+
35+
</body>
36+
</html>

simple_tasks/Stylesheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Load the jQuery UI styles. -->
2-
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
2+
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
33

44
<!-- Custom styles. -->
55
<style>

0 commit comments

Comments
 (0)