hotfix update custom config
This commit is contained in:
parent
a128de0bc6
commit
a3909860d2
|
|
@ -14,9 +14,9 @@ class Custom extends Plugin
|
|||
$this->updateConfigFile();
|
||||
}
|
||||
|
||||
private function updateConfigFile()
|
||||
public function updateConfigFile()
|
||||
{
|
||||
$path = dirname(__DIR__) . "/networks/custom.json";
|
||||
$path = dirname(__DIR__, 2) . "/networks/custom.json";
|
||||
$current_config = @file_get_contents($path);
|
||||
$new_config = json_encode($this->config);
|
||||
if($current_config !== $new_config) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
import {App} from "/assets/App.js";
|
||||
|
||||
(async function(){
|
||||
await App.RPC.__invoke("custom::updateConfigFile")
|
||||
})();
|
||||
Loading…
Reference in New Issue