Skip to content

Commit 02b2b71

Browse files
committed
Get rid of need for _sockjs_onload
1 parent 1c4bed6 commit 02b2b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iframe.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ iframe_template = """
1212
<head>
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1414
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15+
<script src="{{ sockjs_url }}"></script>
1516
<script>
1617
document.domain = document.domain;
17-
_sockjs_onload = function(){SockJS.bootstrap_iframe();};
18+
SockJS.bootstrap_iframe();
1819
</script>
19-
<script src="{{ sockjs_url }}"></script>
2020
</head>
2121
<body>
2222
<h2>Don't panic!</h2>

0 commit comments

Comments
 (0)