Fix FileDropperService to work with the new cb

This commit is contained in:
Dávid Szabó 2016-09-23 13:49:24 +02:00 committed by Julian Descottes
parent d775609183
commit 38cbfe4fce

View File

@ -52,11 +52,10 @@
pskl.UserSettings.set(pskl.UserSettings.SELECTED_PALETTE, palette.id);
};
ns.FileDropperService.prototype.onPiskelFileLoaded_ = function (piskel, descriptor, fps) {
ns.FileDropperService.prototype.onPiskelFileLoaded_ = function (piskel, extra) {
if (window.confirm('This will replace your current animation')) {
piskel.setDescriptor(descriptor);
pskl.app.piskelController.setPiskel(piskel);
pskl.app.previewController.setFPS(fps);
pskl.app.previewController.setFPS(extra.fps);
}
};