mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
13 lines
290 B
JavaScript
13 lines
290 B
JavaScript
(function () {
|
|
var ns = $.namespace('pskl.utils');
|
|
|
|
ns.FileUtils = {
|
|
readFile : function (file, callback) {
|
|
var reader = new FileReader();
|
|
reader.onload = function(event){
|
|
callback(event.target.result);
|
|
};
|
|
reader.readAsDataURL(file);
|
|
}
|
|
};
|
|
})(); |