mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client+server: fixed style errors
This commit is contained in:
@ -17,7 +17,7 @@ class HomeController {
|
||||
buildDate: config.meta.buildDate,
|
||||
canListSnapshots: api.hasPrivilege("snapshots:list"),
|
||||
canListPosts: api.hasPrivilege("posts:list"),
|
||||
isDevelopmentMode: config.environment == "development"
|
||||
isDevelopmentMode: config.environment == "development",
|
||||
});
|
||||
|
||||
Info.get().then(
|
||||
|
@ -196,11 +196,9 @@ class TagInputControl extends events.EventTarget {
|
||||
const listItemNode = this._createListItemNode(tag);
|
||||
if (!tag.category) {
|
||||
listItemNode.classList.add("new");
|
||||
}
|
||||
else if (source === SOURCE_IMPLICATION) {
|
||||
} else if (source === SOURCE_IMPLICATION) {
|
||||
listItemNode.classList.add("implication");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
listItemNode.classList.add("added");
|
||||
}
|
||||
this._tagListNode.prependChild(listItemNode);
|
||||
|
@ -4,12 +4,12 @@ const config = require("./config.js");
|
||||
|
||||
if (config.environment == "development") {
|
||||
var ws = new WebSocket("ws://" + location.hostname + ":8080");
|
||||
ws.addEventListener('open', function (event) {
|
||||
ws.addEventListener("open", function (event) {
|
||||
console.log("Live-reloading websocket connected.");
|
||||
});
|
||||
ws.addEventListener('message', (event) => {
|
||||
ws.addEventListener("message", (event) => {
|
||||
console.log(event);
|
||||
if (event.data == 'reload'){
|
||||
if (event.data == "reload") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user