Browse Source

Fixed UTF-8 encoding in AJAX loader. Fixes #252 #254

Benjamin Giesinger 7 năm trước cách đây
mục cha
commit
58b57d1235
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/OpenSheetMusicDisplay/AJAX.ts

+ 1 - 1
src/OpenSheetMusicDisplay/AJAX.ts

@@ -32,7 +32,7 @@ export class AJAX {
                     }
                 }
             };
-            xhttp.overrideMimeType("text/plain; charset=x-user-defined");
+            xhttp.overrideMimeType("text/xml");
             xhttp.open("GET", url, true);
             xhttp.send();
         });