Skip to content

Commit a7e25e3

Browse files
committed
The setting of language.
1 parent d38f273 commit a7e25e3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

code.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,14 @@ Code.loadSimulator = function () {
603603
area.style.height = (contentHeight - 110) + 'px';
604604
};
605605
var frameReady = function () {
606+
var api = frame.contentWindow.blockly;
607+
608+
// 語系
609+
api.lang(Code.getLang());
610+
611+
// 之前存檔的回復
606612
if (storage.config) {
607-
frame.contentWindow.blockly.config(storage.config);
613+
api.config(storage.config);
608614
}
609615

610616
if (storage.opened) {

0 commit comments

Comments
 (0)