This commit is contained in:
Joe Ma 2022-09-14 01:41:55 +08:00
parent 222867dd81
commit ef9b6e7334
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@
elements[i].disabled = elements[i].value.length === 0;
}
} else {
alert('You must either upload a file or upload text, but not bothor neither.');
alert('You must either upload a file or upload text, but not both or neither.');
// Prevent default submission
event.preventDefault();
}

View file

@ -97,7 +97,7 @@ export default {
const agent = headers.get('user-agent') ?? '';
// Detect if request from browsers
const is_browser = ['Mozilla', 'AppleWebKit', 'Chrome', 'Safari', 'Gecko'].some(v => agent.includes(v));
const is_browser = ['Chrome', 'Mozilla', 'AppleWebKit', 'Safari', 'Gecko', 'Chromium'].some(v => agent.includes(v));
const s3 = new AwsClient({
accessKeyId: env.AWS_ACCESS_KEY_ID,