Spaces:
Runtime error
Runtime error
NotTheDr01ds
commited on
Commit
·
7822d7c
1
Parent(s):
b316ed7
Truncated URL length; Fixed encoding
Browse files- detector/index.html +2 -1
detector/index.html
CHANGED
@@ -138,7 +138,8 @@ textbox.oninput = () => {
|
|
138 |
update_graph(null);
|
139 |
return;
|
140 |
}
|
141 |
-
|
|
|
142 |
req.onreadystatechange = () => {
|
143 |
if (req.readyState !== 4) return;
|
144 |
if (req.status !== 200) throw new Error("HTTP status: " + req.status);
|
|
|
138 |
update_graph(null);
|
139 |
return;
|
140 |
}
|
141 |
+
const maxCharacters = 16300;
|
142 |
+
req.open('GET', `?${encodeURIComponent(textbox.value)}`.slice(0,maxCharacters), true);
|
143 |
req.onreadystatechange = () => {
|
144 |
if (req.readyState !== 4) return;
|
145 |
if (req.status !== 200) throw new Error("HTTP status: " + req.status);
|