re-format code to with pre-commit

这个提交包含在:
qingxu fu
2023-12-31 19:30:32 +08:00
父节点 60ba712131
当前提交 480516380d
共有 52 个文件被更改,包括 439 次插入326 次删除

查看文件

@@ -197,7 +197,7 @@ function swap_input_area() {
// Swap the elements
parent.insertBefore(element2, element1);
parent.insertBefore(element1, nextSibling);
if (swapped) {swapped = false;}
if (swapped) {swapped = false;}
else {swapped = true;}
}
@@ -502,7 +502,7 @@ function minor_ui_adjustment() {
var cur_right = btn_list[always_preserve-1].getBoundingClientRect().right;
if (bar_btn_width.length == 0){
// 首次运行,记录每个按钮的宽度
for (var i = 0; i < btn_list.length; i++) {
for (var i = 0; i < btn_list.length; i++) {
bar_btn_width.push(btn_list[i].getBoundingClientRect().width);
}
}
@@ -553,4 +553,4 @@ function GptAcademicJavaScriptInit(LAYOUT = "LEFT-RIGHT") {
});
chatbotObserver.observe(chatbotIndicator, { attributes: true, childList: true, subtree: true });
if (LAYOUT === "LEFT-RIGHT") { chatbotAutoHeight(); }
}
}