- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / subscribe_page_action / doc_start.js
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
3 // found in the LICENSE file.
4
5 debugMsg(logLevels.info, "Running script at document_start");
6
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.
9 if (containsFeed(document))
10   chrome.extension.sendMessage({msg: "feedDocument", href: location.href});