VulpesOS/assets/webapps/email.gaiamobile.org/js/cards/settings_debug.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

47 lines
No EOL
1.4 KiB
JavaScript

var _secretDebug;
define([
'require',
'api',
'cards',
'html_cache',
'./base_card',
'template!./settings_debug.html'
], function (require) {
var MailAPI = require('api'), cards = require('cards'), htmlCache = require('html_cache');
if (!_secretDebug) {
_secretDebug = {};
}
return [
require('./base_card')(require('template!./settings_debug.html')),
{
createdCallback: function () {
this.loggingSelect.value = MailAPI.config.debugLogging || '';
},
onClose: function () {
cards.removeCardAndSuccessors(this, 'animate', 1);
},
resetApp: function () {
window.location.reload();
},
dumpLog: function (target) {
MailAPI.debugSupport('dumpLog', target);
},
onChangeLogging: function () {
var value = this.loggingSelect.value || false;
MailAPI.debugSupport('setLogging', value);
},
fastSync: function () {
_secretDebug.fastSync = [
20000,
60000
];
},
resetStartupCache: function () {
htmlCache.reset();
console.log('htmlCache.reset done');
},
die: function () {
}
}
];
});