mirror of
https://github.com/rikkaneko/paste.git
synced 2025-06-06 16:45:41 +00:00
Fix typo
This commit is contained in:
parent
222867dd81
commit
ef9b6e7334
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue