Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 12, 2021
1 parent 7db2262 commit f4e5ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kyokusui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .model import Board, Thread, Res, Permission
from .utils import hiroyuki


class App(App):
name = 'Kyokusui'
description = '業務用便所の落書き'
Expand Down
2 changes: 1 addition & 1 deletion kyokusui/templates/thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h5 class='modal-title'>スレッドを締めますか?</h5>
const textarea = document.querySelector("#message")
const image_form = document.querySelector("#image")
const image2send = document.querySelector("#image2send")
const ws = new WebSocket("{{ fullurl(request, "/api/v0/board/" + board._id + "/" + thread._id + "/socket", scheme="ws") }}")
const ws = new WebSocket("{{ fullurl(request, "/api/v0/board/" + board._id + "/" + thread._id + "/socket", scheme="ws" if request.scheme == "http" else "wss") }}")
image_form.onchange = async e => {
const files = await Promise.all(Array.from(e.target.files).map(f => {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit f4e5ab2

Please sign in to comment.