Skip to content

Commit

Permalink
fix setDataSource() blob error in Firefox #772
Browse files Browse the repository at this point in the history
  • Loading branch information
bcamper committed Jan 31, 2021
1 parent b5b122a commit d91cbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ export default class Scene {

// Convert raw data into blob URL
if (source.data && typeof source.data === 'object') {
source.url = URLs.createObjectURL(new Blob([JSON.stringify(source.data)]));
source.url = URLs.createObjectURL(new Blob([JSON.stringify(source.data)], { type: 'application/json' }));
delete source.data;
}

Expand Down

0 comments on commit d91cbb0

Please sign in to comment.