Index: chrome/test/data/extensions/subscribe_page_action/popup.js |
=================================================================== |
--- chrome/test/data/extensions/subscribe_page_action/popup.js (revision 137495) |
+++ chrome/test/data/extensions/subscribe_page_action/popup.js (working copy) |
@@ -1,29 +1,9 @@ |
-<!-- |
- * Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
+/* |
+ * Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this |
* source code is governed by a BSD-style license that can be found in the |
* LICENSE file. |
---> |
-<html> |
-<head> |
-<style> |
- body { |
- overflow-x: hidden; |
- } |
+ */ |
- .heading { |
- font-family: Helvetica, Arial; |
- font-size: small; |
- font-weight: bold; |
- margin-left: 2px; |
- } |
- |
- .feedList { |
- font-family: Helvetica, Arial; |
- font-size: small; |
- vertical-align: bottom; |
- } |
-</style> |
-<script> |
function feedLink(url) { |
var feed_link = document.createElement('a'); |
feed_link.href = url; |
@@ -93,11 +73,6 @@ |
chrome.tabs.create({ url: url }); |
window.close(); |
} |
-</script> |
-</head> |
-<body onload="javascript:main()"> |
- <div id="content"> |
- <span id="heading" class="heading">Loading...</span> |
- </div> |
-</body> |
-</html> |
+ |
+// Init on DOM ready. |
+document.addEventListener('DOMContentLoaded', main); |