Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New manifest version had a new content security policy. Body onload i…

…sn't allowed anymore, so use DOMContentLoaded listener.
  • Loading branch information...
commit 910fe6a9e9dfcf2c686f59eb15e369a3bdba4471 1 parent 30b3552
@ggreer authored
Showing with 3 additions and 2 deletions.
  1. +1 −2  popup.html
  2. +2 −0  popup.js
View
3  popup.html
@@ -8,7 +8,6 @@
<script type="text/javascript" src="extern/d3.v2.js"></script>
<script type="text/javascript" src="popup.js"></script>
</head>
-<body onload="init_graph()">
-
+<body>
</body>
</html>
View
2  popup.js
@@ -131,3 +131,5 @@ function get_history(start_time) {
}
get_history();
+
+document.addEventListener('DOMContentLoaded', init_graph);
Please sign in to comment.
Something went wrong with that request. Please try again.