Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Nov 11, 2023
1 parent 33ae1de commit 99a475d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/basic/UploadEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ window.addEventListener(uploadCommand.eventName, (ce: MouseEvent) => {
const element = ce.target as HTMLElement;

const authorize = element.getAttribute("data-authorize");
if (authorize === "true") {
if(!App.authorize()) {
return;
}
}


const multiple = element.getAttribute("data-multiple") === "true";
const extra = (element as any).extra ?? element.getAttribute("data-extra");
const upload = element.getAttribute("data-upload") === "true";
const folder = element.hasAttribute("data-folder");
const uploadEvent = StringHelper.fromHyphenToCamel(element.getAttribute("data-upload-event"));

if (authorize === "true") {
if(!App.authorize()) {
return;
}
}
const chain: HTMLElement[] = [];
let start = element;
while(start) {
Expand Down

0 comments on commit 99a475d

Please sign in to comment.