aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index 506d66c..14a8024 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -34,7 +34,7 @@ const NewPaste = () => {
const [title, setTitle] = useState('');
const [content, setContent] = useState('');
const [pass, setPass] = useState('');
- const [language, setLanguage] = useState(LANGS.auto);
+ const [language, setLanguage] = useState(LANGS.detect);
const [expiry, setExpiry] = useState('');
const [hash, setHash] = useState('');
const [isPreview, setIsPreview] = useState(false);
@@ -76,8 +76,7 @@ const NewPaste = () => {
const pasteInput = <Code
setContentCallback={setContent}
content={content}
- maxLength="100000"
- id="pasteInput" />
+ maxLength="100000" />
if (isPreview) {
var preview