transit from nadrez, added panel
This commit is contained in:
29
firefox/modules/module.js
Normal file
29
firefox/modules/module.js
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
|
||||
*/
|
||||
class module {
|
||||
/**
|
||||
* Префикс в журнале
|
||||
*/
|
||||
prefix = this.name;
|
||||
|
||||
/**
|
||||
* Запись в журнал
|
||||
*
|
||||
* @param {string} text
|
||||
*
|
||||
* @return {bool} Статус записи в журнал
|
||||
*/
|
||||
log(text) {
|
||||
if (typeof text === 'string') {
|
||||
// Передана строка
|
||||
|
||||
// Запись в журнал
|
||||
return log.write(this.prefix, text);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user