mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-23 03:15:48 +02:00
Tweak support for old configs in reply-account plugin
This commit is contained in:
parent
e48a068e9d
commit
221bdc58fe
@ -1,5 +1,5 @@
|
||||
enabled(){
|
||||
var configuration = { defaultAccount: "" };
|
||||
var configuration = { defaultAccount: "#preferred" };
|
||||
|
||||
window.TDPF_loadConfigurationFile(this, "configuration.js", "configuration.default.js", obj => configuration = obj);
|
||||
|
||||
@ -18,6 +18,13 @@ enabled(){
|
||||
}
|
||||
else{
|
||||
query = configuration.defaultAccount;
|
||||
|
||||
if (query === ""){
|
||||
query = "#preferred";
|
||||
}
|
||||
else if (typeof query !== "string"){
|
||||
query = "#default";
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof query === "undefined"){
|
||||
|
Loading…
Reference in New Issue
Block a user