Changes

Jump to navigation Jump to search
m
no edit summary
Line 172: Line 172:  
});
 
});
   −
mw.notify( $( button_import.$element ), { autoHide: false } );
+
mw.notify( $( button_import.$element ), { autoHide: false } );
mw.notify( $( button_export.$element ), { autoHide: false } );
+
mw.notify( $( button_export.$element ), { autoHide: false } );
 
});
 
});
 +
}
 +
 +
function readFileContent(file) {
 +
const reader = new FileReader()
 +
return new Promise((resolve, reject) => {
 +
reader.onload = event => resolve(event.target.result)
 +
reader.onerror = error => reject(error)
 +
reader.readAsText(file)
 +
})
 
}
 
}
    
}
 
}
530

edits

Navigation menu