Skip to content

Commit

Permalink
bug fix for window
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Jul 24, 2024
1 parent c167ee7 commit 797e3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if (document.getElementById('geolonia-gis-editor-container')) {

// GeoJSON 以外のファイルがひとつでもあれば拒否
for (let i = 0; i < e.dataTransfer.items.length; i++) {
if (!e.dataTransfer.items[i].type.match(/application\/(geo\+)?json/)) {
if (!e.dataTransfer.items[i].type.match(/application\/(vnd\.)?(geo\+)?json/)) {
document.getElementById('geolonia-uploader').classList.add('alert')
}
}
Expand Down

0 comments on commit 797e3c3

Please sign in to comment.