Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
https://github.com/NanoAdblocker/NanoCore/issues/40
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Jan 5, 2018
1 parent b2fc81e commit 16983c0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
32 changes: 32 additions & 0 deletions platform/edge/nano-platform-vars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*******************************************************************************
Nano Adblocker - Just another adblocker
Copyright (C) 2017 Nano Adblocker contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 this program. If not, see {http://www.gnu.org/licenses/}.
Home: https://github.com/NanoAdblocker/NanoCore
*/

'use strict';

/******************************************************************************/

window.NanoDefenderExtensionID = '';
window.NanoReIsDashboardURL = new RegExp('^' + browser.runtime.getURL('') +
'(?:nano-)?dashboard\\.html');

/******************************************************************************/

window.NanoAdblockerDeveloperModeExtensionID = '';
1 change: 0 additions & 1 deletion platform/edge/vapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if (
// Patch 2018-01-05: Add compatibility shims
window.edge = chrome || {};
window.chrome = browser;
delete window.browser;

(function() {
var _toLocaleString = Date.prototype.toLocaleString;
Expand Down
10 changes: 6 additions & 4 deletions src/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<script src="js/vapi-webrequest.js"></script><!-- Forks can pick the webext, chromium, or their own implementation -->
<script src="js/vapi-cachestorage.js"></script><!-- Optional -->
<script src="js/background.js"></script>

<!-- Patch 2017-12-08: Add background script to contain logic only related to Nano -->
<script src="js/nano-bg.js"></script>
<!-- Patch 2017-12-13: Add linter -->
<script src="js/nano-lint.js"></script>

<script src="js/hntrie.js"></script>
<script src="js/utils.js"></script>
<script src="js/uritools.js"></script>
Expand All @@ -41,9 +47,5 @@
<script src="js/rpcreceiver.js"></script>
<script src="js/start.js"></script>
<script src="js/commands.js"></script>
<!-- Patch 2017-12-08: Add background script to contain logic only related to Nano -->
<script src="js/nano-bg.js"></script>
<!-- Patch 2017-12-13: Add linter -->
<script src="js/nano-lint.js"></script>
</body>
</html>

0 comments on commit 16983c0

Please sign in to comment.