Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Jan 26, 2021
1 parent 1b9ffbb commit bc798de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body = '''
body = b'''
'use strict';
onconnect = (event) => {
Expand All @@ -16,9 +16,9 @@
};'''

def main(request, response):
headers = [('Content-Type', 'text/html')]
headers = [(b'Content-Type', b'text/javascript')]

for value in request.GET.get_list('value'):
headers.append(('Cross-Origin-Embedder-Policy', value))
for value in request.GET.get_list(b'value'):
headers.append((b'Cross-Origin-Embedder-Policy', value))

return (200, headers, body)
3 changes: 0 additions & 3 deletions html/cross-origin-embedder-policy/shared-workers.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
document.body.appendChild(iframe);
t.add_cleanup(() => iframe.remove());
iframe.onload = () => resolve(iframe);
iframe.onerror = () => {
reject(new Error('failed to load frame at ' + iframe.src));
};
})
.then((iframe) => {
const sw = new iframe.contentWindow.SharedWorker(workerUrl);
Expand Down

0 comments on commit bc798de

Please sign in to comment.