From ef9b6e7334579a3197237f39ce1aea4abb448e0b Mon Sep 17 00:00:00 2001 From: Joe Ma Date: Wed, 14 Sep 2022 01:41:55 +0800 Subject: [PATCH] Fix typo --- paste.html | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paste.html b/paste.html index 0d2cf52..8fe961b 100644 --- a/paste.html +++ b/paste.html @@ -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(); } diff --git a/src/index.ts b/src/index.ts index 001b9c1..5cffc75 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,