Skip to content
Snippets Groups Projects
Verified Commit 391eb4e6 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Add internal API wrapper module

parent 91f32afa
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@
"Setting": true,
"stateManager": true,
"WebRequest": true,
"Whitelist": true
"Whitelist": true,
"wrappers": true
},
"overrides": {
"files": [
......
/**
* Internal API Wrapper Module
* Belongs to Decentraleyes.
*
* @author Thomas Rientjes
* @since 2017-12-03
* @license MPL 2.0
*
* 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/.
*/
'use strict';
/**
* Wrappers
*/
var wrappers = {};
/**
* Public Methods
*/
wrappers.setBadgeBackgroundColor = function (details) {
if (chrome.browserAction.setBadgeBackgroundColor !== undefined) {
chrome.browserAction.setBadgeBackgroundColor(details);
}
};
wrappers.setBadgeText = function (details) {
if (chrome.browserAction.setBadgeText !== undefined) {
chrome.browserAction.setBadgeText(details);
}
};
......@@ -10,6 +10,7 @@
<body>
<script src="../../modules/internal/wrappers.js"></script>
<script src="../../modules/internal/helpers.js"></script>
<script src="../../core/constants.js"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment