File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 247247 <div class =" mr-auto" >
248248 <button type =" button" id =" exportFilters" class =" btn btn-sm btn-primary" >{ {filter_export} }</button >
249249 <button type =" button" id =" importFilters" class =" btn btn-sm btn-primary" >{ {filter_import} }</button >
250- <input type =" file" id =" importFiltersFile" accept =" text /json" class =" btn btn-primary" hidden >
250+ <input type =" file" id =" importFiltersFile" accept =" application /json" class =" btn btn-primary" hidden >
251251 </div >
252252 <button type =" button" class =" btn btn-sm btn-secondary" data-dismiss =" modal" >{ {filter_cancel} }</button >
253253 <button type =" button" id =" saveFilters" class =" btn btn-sm btn-primary" >{ {filter_save} }</button >
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ $(function () {
432432 } ;
433433 let json = JSON . stringify ( settings ) ;
434434 let el = document . createElement ( 'a' ) ;
435- el . setAttribute ( 'href' , 'data:text/plain ;chartset=utf-8,' + encodeURIComponent ( json ) ) ;
435+ el . setAttribute ( 'href' , 'data:application/json ;chartset=utf-8,' + encodeURIComponent ( json ) ) ;
436436 el . setAttribute ( 'download' , 'settings.json' ) ;
437437 el . style . display = 'none' ;
438438 document . body . appendChild ( el ) ;
You can’t perform that action at this time.
0 commit comments