feat(core): 将goog.get接口调整为goog.readJsonSync以指示其同步操作特性
This commit is contained in:
@@ -58,7 +58,7 @@ class StatusBarSerial extends PageBase {
|
||||
static {
|
||||
HTMLTemplate.add(
|
||||
'html/statusbar/statusbar-serial.html',
|
||||
new HTMLTemplate(goog.get(path.join(Env.templatePath, 'html/statusbar/statusbar-serial.html')))
|
||||
new HTMLTemplate(goog.readFileSync(path.join(Env.templatePath, 'html/statusbar/statusbar-serial.html')))
|
||||
);
|
||||
SideBarsManager.typesRegistry.register(['serial_output'], StatusBarSerialOutput);
|
||||
SideBarsManager.typesRegistry.register(['serial_chart'], StatusBarSerialChart);
|
||||
|
||||
Reference in New Issue
Block a user