mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-08 20:34:05 +02:00
Allow custom .js files in plugin folders when prefixed by 'user.'
This commit is contained in:
parent
85d5160782
commit
81aa30b2ec
@ -93,8 +93,8 @@ private static bool LoadEnvironments(string path, Plugin plugin, out string erro
|
||||
if (environment != PluginEnvironment.None){
|
||||
plugin.Environments |= environment;
|
||||
}
|
||||
else{
|
||||
error = "Unknown script file: "+file;
|
||||
else if (!file.StartsWith("user.")){
|
||||
error = "Unknown script file: "+file+". All custom script files have to be in the following naming style: user."+file;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user