prettier: ran on all files again, sorry. now settings are defined in package.json

This commit is contained in:
Torkel Ödegaard
2017-12-21 08:39:31 +01:00
parent af34f9977e
commit 3a1f52d8a2
262 changed files with 3996 additions and 7431 deletions

View File

@@ -28,10 +28,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
dash = JSON.parse(e.target.result);
} catch (err) {
console.log(err);
scope.appEvent('alert-error', [
'Import failed',
'JSON -> JS Serialization failed: ' + err.message,
]);
scope.appEvent('alert-error', ['Import failed', 'JSON -> JS Serialization failed: ' + err.message]);
return;
}
@@ -52,15 +49,9 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
// Check for the various File API support.
if (wnd.File && wnd.FileReader && wnd.FileList && wnd.Blob) {
// Something
document
.getElementById('dashupload')
.addEventListener('change', file_selected, false);
document.getElementById('dashupload').addEventListener('change', file_selected, false);
} else {
alertSrv.set(
'Oops',
'Sorry, the HTML5 File APIs are not fully supported in this browser.',
'error'
);
alertSrv.set('Oops', 'Sorry, the HTML5 File APIs are not fully supported in this browser.', 'error');
}
},
};