remove large file limit, prevent double install
This commit is contained in:
parent
782802a376
commit
5134311e3a
1 changed files with 4 additions and 1 deletions
|
|
@ -306,7 +306,6 @@ function rip(event) {
|
|||
const files = applicant.application_files ?? []
|
||||
|
||||
files.forEach((afile) => {
|
||||
if (afile.blob.size > 2_000_000) return;
|
||||
const ext = afile.file_name.split(".").slice(-1)
|
||||
const filename = `${afile.field_name}.${ext}`
|
||||
// const filename = sanitizeZipPathSegment(afile.file_name)
|
||||
|
|
@ -339,6 +338,10 @@ function install() {
|
|||
const titleTag = document.querySelector("scrm-module-title")
|
||||
|
||||
if (titleTag != null) {
|
||||
if (titleTag.querySelector(".ripper-btn") != null) {
|
||||
return
|
||||
}
|
||||
|
||||
const a = document.createElement("button")
|
||||
a.textContent = "rip"
|
||||
a.classList.add("ripper-btn")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue