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:
parent
718383205b
commit
474ff9cd74
@ -364,7 +364,7 @@ function badRequest(client, reason) {
|
|||||||
var old = gBadRequests[client.peerName];
|
var old = gBadRequests[client.peerName];
|
||||||
if (!old) {
|
if (!old) {
|
||||||
gBadRequests[client.peerName] = {
|
gBadRequests[client.peerName] = {
|
||||||
expire: new Date(now.getTime() + 10 * 60 * 1000),
|
expire: new Date(now.getTime() + 1 * 60 * 1000),
|
||||||
count: 1,
|
count: 1,
|
||||||
reason: reason,
|
reason: reason,
|
||||||
};
|
};
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="viewPane" class="vbox" style="flex: 1 0 50%; overflow: auto">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
<script src="/split/split.min.js"></script>
|
<script src="/split/split.min.js"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user