Fix missing callback when uploading files to the drive

pull/1/head
yflory 7 years ago
parent 33e3c6a0c0
commit 0f02d76b56

@ -276,6 +276,7 @@ define([
}; };
common.setPadAttribute = function (attr, value, cb, href) { common.setPadAttribute = function (attr, value, cb, href) {
cb = cb || function () {};
href = Hash.getRelativeHref(href || window.location.href); href = Hash.getRelativeHref(href || window.location.href);
postMessage("SET_PAD_ATTRIBUTE", { postMessage("SET_PAD_ATTRIBUTE", {
href: href, href: href,
@ -297,6 +298,7 @@ define([
}); });
}; };
common.setAttribute = function (attr, value, cb) { common.setAttribute = function (attr, value, cb) {
cb = cb || function () {};
postMessage("SET_ATTRIBUTE", { postMessage("SET_ATTRIBUTE", {
attr: attr, attr: attr,
value: value value: value

Loading…
Cancel
Save