From 70ba7b04b14ecf8a34e094c79903f2342d298bfa Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Sat, 20 Dec 2014 07:34:07 -0800 Subject: [PATCH] Bug 1093172 - Follow-up: include missing import. r=trivial --- mobile/android/chrome/content/Reader.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/mobile/android/chrome/content/Reader.js b/mobile/android/chrome/content/Reader.js index 831fa1ddd383..25a0e723e2eb 100644 --- a/mobile/android/chrome/content/Reader.js +++ b/mobile/android/chrome/content/Reader.js @@ -1,12 +1,16 @@ // -*- indent-tabs-mode: nil; js-indent-level: 2 -*- /* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + "use strict"; -let Reader = { +const { utils: Cu } = Components; - // These values should match those defined in BrowserContract.java +Cu.import("resource://gre/modules/ReaderMode.jsm"); + +let Reader = { + // These values should match those defined in BrowserContract.java. STATUS_UNFETCHED: 0, STATUS_FETCH_FAILED_TEMPORARY: 1, STATUS_FETCH_FAILED_PERMANENT: 2, @@ -261,7 +265,7 @@ let Reader = { }); for (let article of articles) { - yield this.storeArticleInCache(article); + yield ReaderMode.storeArticleInCache(article); } // Delete the database.