mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 13:17:46 +01:00
Set MIME type for RTL blob
This commit is contained in:
parent
7d5d9e2d82
commit
92b970377d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue