/* * This file is part of Privacy Badger * Copyright (C) 2014 Electronic Frontier Foundation * * Privacy Badger is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * Privacy Badger is distributed in the hope that it will be useful, * 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 Privacy Badger. If not, see . */ window.DEBUG = false; window.badger = {}; /** * Log a message to the console if debugging is enabled */ window.log = function (/*...*/) { if (window.DEBUG) { console.log.apply(console, arguments); } }; /** * Basic implementation of requirejs * for requiring other javascript files */ function require(module) { return require.scopes[module]; } require.scopes = {};