1 parent d38f273 commit a7e25e3Copy full SHA for a7e25e3
1 file changed
code.js
@@ -603,8 +603,14 @@ Code.loadSimulator = function () {
603
area.style.height = (contentHeight - 110) + 'px';
604
};
605
var frameReady = function () {
606
+ var api = frame.contentWindow.blockly;
607
+
608
+ // 語系
609
+ api.lang(Code.getLang());
610
611
+ // 之前存檔的回復
612
if (storage.config) {
- frame.contentWindow.blockly.config(storage.config);
613
+ api.config(storage.config);
614
}
615
616
if (storage.opened) {
0 commit comments