diff --git a/src/libs/mapbox-rtl.js b/src/libs/mapbox-rtl.js index 84d9211..e7e5d79 100644 --- a/src/libs/mapbox-rtl.js +++ b/src/libs/mapbox-rtl.js @@ -3,9 +3,9 @@ import MapboxGl from 'mapbox-gl' // Load mapbox-gl-rtl-text using object urls without needing http://localhost for AJAX. const data = require("raw-loader?mimetype=text/javascript!@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js"); -const blob = new window.Blob([data]); -const objectUrl = window.URL.createObjectURL(blob, { +const blob = new window.Blob([data], { type: "text/javascript" }); +const objectUrl = window.URL.createObjectURL(blob); MapboxGl.setRTLTextPlugin(objectUrl);