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:
parent
e1a6328d09
commit
6d6f383c92
29
Resources/Plugins/edit-design/notification.js
Normal file
29
Resources/Plugins/edit-design/notification.js
Normal 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);
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user