Permalink
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...
1 parent 30b3552 commit 910fe6a9e9dfcf2c686f59eb15e369a3bdba4471 @ggreer committed Aug 31, 2012
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);

0 comments on commit 910fe6a

Please sign in to comment.