diff --git a/run_local_server.bat b/run_local_server.bat
new file mode 100644
index 0000000..ebb7225
--- /dev/null
+++ b/run_local_server.bat
@@ -0,0 +1,5 @@
+where /q http-server
+
+IF ERRORLEVEL 1 (npm i -g http-server)
+
+http-server -p 80
\ No newline at end of file
diff --git a/src/toolbox_file.js b/src/toolbox_file.js
index 65cd40e..3516bed 100644
--- a/src/toolbox_file.js
+++ b/src/toolbox_file.js
@@ -54,8 +54,10 @@ function toolboxLoadString()
function toolboxSaveString()
{
var songData = g_Song.saveJSON();
- var data = "data:text/plain," + encodeURIComponent(songData);
- window.open(data);
+ var newWindow = window.open();
+ newWindow.document.write("");
+ newWindow.document.write(songData);
+ newWindow.document.write("
");
g_Editor.setUnsavedChanges(false);
}
@@ -76,8 +78,10 @@ function toolboxLoadCompressed()
function toolboxSaveCompressed()
{
var songData = g_Song.saveBinary();
- var data = "data:text/plain," + encodeURIComponent(songData);
- window.open(data);
+ var newWindow = window.open();
+ newWindow.document.write("");
+ newWindow.document.write(songData);
+ newWindow.document.write("
");
g_Editor.setUnsavedChanges(false);
}