1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-15 04:44:17 +01:00
LocalCDN-Firefox-Chrome-Brave/modules/internal/log.js

33 lines
662 B
JavaScript
Raw Normal View History

/**
* Log
* Belongs to LocalCDN
*
* @author nobody
* @since 2021-02-19
*
* @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';
/**
* Log
*/
var log = {};
2023-01-20 06:48:18 +01:00
log.append = function (initiator, resource, target, highlight, iframe = '') {
2022-07-01 06:48:31 +02:00
storageManager.type.get(Setting.LOGGING, function (items) {
if (items.enableLogging) {
2023-01-20 06:48:18 +01:00
log.data.push({initiator, resource, target, highlight, iframe});
2022-07-01 06:48:31 +02:00
}
});
};
log.data = [];