1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-25 09:15:50 +02:00

Add notification CSS handling to edit-design plugin

This commit is contained in:
chylex 2017-03-23 14:40:05 +01:00
parent e1a6328d09
commit 6d6f383c92

View File

@ -0,0 +1,29 @@
run(){
var extend = function(target, source){
for(let prop in source){
target[prop] = source[prop];
}
return target;
};
const configFile = "config.json";
$TDP.readFile(this.$token, configFile, true).then(contents => {
try{
loadConfigObject(extend(this.defaultConfig, JSON.parse(contents)));
}catch(err){
loadConfigObject(this.defaultConfig);
}
}).catch(err => {
loadConfigObject(this.defaultConfig);
});
// config handling
this.defaultConfig = {
};
var loadConfigObject = config => {
let css = window.TDPF_createCustomStyle(this);
};
}