feat(core): 将goog.get接口调整为goog.readJsonSync以指示其同步操作特性
This commit is contained in:
@@ -20,7 +20,7 @@ class ContextMenu {
|
||||
static {
|
||||
HTMLTemplate.add(
|
||||
'html/context-menu-item.html',
|
||||
new HTMLTemplate(goog.get(path.join(Env.templatePath, 'html/context-menu-item.html')))
|
||||
new HTMLTemplate(goog.readFileSync(path.join(Env.templatePath, 'html/context-menu-item.html')))
|
||||
);
|
||||
|
||||
this.getItem = (name, hotKey) => HTMLTemplate.get('html/context-menu-item.html').render({ name, hotKey });
|
||||
|
||||
Reference in New Issue
Block a user