Commit c8361fdb authored by Klomi's avatar Klomi

Fix emulator hard reset not working in locales other than en

parent 896ae5ef
...@@ -1213,7 +1213,7 @@ Blockly.ReplMgr.ehardreset = function(formName) { ...@@ -1213,7 +1213,7 @@ Blockly.ReplMgr.ehardreset = function(formName) {
var context = this; var context = this;
var dialog = new Blockly.Util.Dialog(Blockly.Msg.REPL_DO_YOU_REALLY_Q, Blockly.Msg.REPL_FACTORY_RESET, Blockly.Msg.REPL_OK, Blockly.Msg.REPL_CANCEL, 0, function(response) { var dialog = new Blockly.Util.Dialog(Blockly.Msg.REPL_DO_YOU_REALLY_Q, Blockly.Msg.REPL_FACTORY_RESET, Blockly.Msg.REPL_OK, Blockly.Msg.REPL_CANCEL, 0, function(response) {
dialog.hide(); dialog.hide();
if (response == "OK") { if (response == Blockly.Msg.REPL_OK) {
context.hardreset(formName, function() { context.hardreset(formName, function() {
var xhr = goog.net.XmlHttp(); var xhr = goog.net.XmlHttp();
xhr.open("GET", "http://localhost:8004/emulatorreset/", true); xhr.open("GET", "http://localhost:8004/emulatorreset/", true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment