增加global_static hook关键字,并优化menu的文件加载hook

"hook":[
		{
			"tag":"global_static",
			"global_static": {
				"css_path":"menu/own_style.css",
				"js_path":"js/own_style.js"
			}
		}
	],
This commit is contained in:
midoks
2023-02-25 07:26:48 +08:00
parent 7123a15457
commit 5c46202be0
5 changed files with 60 additions and 34 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class App():
self.__host_dir = self.getServerDir() + '/host'
if not os.path.exists(self.__host_dir):
os.makedirs(self.__host_dir)
mw.execShell('mkdir -p ' + self.__host_dir)
def getPluginName(self):
return 'webssh'