Line 122:
Line 122:
+
if (window.webkitURL != null) {
+
window.alert("loading file on webkit")
+
} else {
+
window.alert("loading file non webkit")
+
}
−
if (window.webkitURL != null) {
−
alert("loading file on webkit")
−
} else {
−
alert("loading file non webkit")
−
}
−
+
});
−
});
button_export.on( 'click', function () {
button_export.on( 'click', function () {
Line 138:
Line 137:
get_record.then( function(result) {
get_record.then( function(result) {
−
if ( result === undefined ) { alert("No data to export") };
+
if ( result === undefined ) { window.alert("No data to export") };
var filename_tosaveas = "pdiolocalexport_" + result.name.user + "_" + Date.now() + '.json';
var filename_tosaveas = "pdiolocalexport_" + result.name.user + "_" + Date.now() + '.json';