You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
446 B
JavaScript
18 lines
446 B
JavaScript
'use strict';
|
|
|
|
|
|
const db = require('../../database');
|
|
|
|
module.exports = {
|
|
name: 'Reset bootswatch skin',
|
|
timestamp: Date.UTC(2023, 3, 24),
|
|
method: async function () {
|
|
const config = await db.getObject('config');
|
|
const currentSkin = config.bootswatchSkin || '';
|
|
const css = require('../../meta/css');
|
|
if (currentSkin && !css.supportedSkins.includes(currentSkin)) {
|
|
await db.setObjectField('config', 'bootswatchSkin', '');
|
|
}
|
|
},
|
|
};
|