Removed duplicate export.
@@ -46,19 +46,6 @@ export function dispatchEvent(elem, eventName, eventData) {
//console.log('dispatching');
}
-export function readAsDataURL(file) {
- return new Promise((resolve, reject) => {
- const reader = new FileReader();
- reader.onload = function() {
- resolve(reader.result);
- };
- reader.onerror = function() {
- reject(f);
- };
- reader.readAsDataURL(file);
- });
-};
-
/*
* Freezes an object recursively.
*
