Index: lib/io.js |
=================================================================== |
--- a/lib/io.js |
+++ b/lib/io.js |
@@ -10,18 +10,16 @@ |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* GNU General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
-"use strict"; |
- |
const keyPrefix = "file:"; |
function fileToKey(fileName) |
{ |
return keyPrefix + fileName; |
} |
function loadFile(fileName) |
@@ -66,18 +64,17 @@ |
if (browser.runtime.lastError) |
reject(browser.runtime.lastError.message); |
else |
resolve(); |
}); |
}); |
} |
-exports.IO = |
-{ |
+export const IO = { |
/** |
* Reads text lines from a file. |
* @param {string} fileName |
* Name of the file to be read |
* @param {TextSink} listener |
* Function that will be called for each line in the file |
* @return {Promise} |
* Promise to be resolved or rejected once the operation is completed |