Decrease the bad request timeout, as I've tripped it myself occasionally. And let the iframe hit the WebSerial interface. I might have a fun use for that.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3917 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-06-20 19:50:03 +00:00
parent 718383205b
commit 474ff9cd74
2 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ function badRequest(client, reason) {
var old = gBadRequests[client.peerName];
if (!old) {
gBadRequests[client.peerName] = {
expire: new Date(now.getTime() + 10 * 60 * 1000),
expire: new Date(now.getTime() + 1 * 60 * 1000),
count: 1,
reason: reason,
};

View File

@ -57,7 +57,7 @@
</div>
</div>
<div id="viewPane" class="vbox" style="flex: 1 0 50%; overflow: auto">
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" style="width: 100%; height: 100%; border: 0"></iframe>
<iframe id="document" sandbox="allow-forms allow-scripts allow-top-navigation allow-modals" allow="serial" style="width: 100%; height: 100%; border: 0"></iframe>
</div>
</div>
<script src="/split/split.min.js"></script>