| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 debugMsg(logLevels.info, "Running script at document_start"); | 5 debugMsg(logLevels.info, "Running script at document_start"); |
| 6 | 6 |
| 7 // See if the current document is a feed document and if so, let | 7 // See if the current document is a feed document and if so, let |
| 8 // the extension know that we should show the subscribe page instead. | 8 // the extension know that we should show the subscribe page instead. |
| 9 if (containsFeed(document)) | 9 if (containsFeed(document)) |
| 10 chrome.extension.sendRequest({msg: "feedDocument", href: location.href}); | 10 chrome.extension.sendMessage({msg: "feedDocument", href: location.href}); |
| OLD | NEW |