aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-02-25 16:16:39 +0300
committerRblSb <msrblsb@gmail.com>2020-02-26 08:30:03 +0300
commitaadb867a613c44d14cad27189c20b8fc0ef49a2d (patch)
treed177ba86fd9082e75d6bb669be5af5f5e75fe8fc /res
parent1cc391ceb0cf5db62e0422390780e79de2597202 (diff)
Handle SIGTERM
Diffstat (limited to 'res')
-rw-r--r--res/client.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/res/client.js b/res/client.js
index ebe12b8..0f003eb 100644
--- a/res/client.js
+++ b/res/client.js
@@ -722,8 +722,7 @@ client_Main.prototype = {
if(!StringTools.startsWith(url,"http")) {
url = "" + protocol + "//" + url;
}
- var pos = url.lastIndexOf("/") + 1;
- var name = HxOverrides.substr(url,pos,null);
+ var name = HxOverrides.substr(url,url.lastIndexOf("/") + 1,null);
var matchName = new EReg("^(.+)\\.","");
if(matchName.match(name)) {
name = matchName.matched(1);
@@ -947,9 +946,8 @@ client_Main.prototype = {
}
var smilesWrap = window.document.querySelector("#smileswrap");
smilesWrap.onclick = function(e) {
- var el = e.target;
var form = window.document.querySelector("#chatline");
- form.value += " " + el.title;
+ form.value += " " + e.target.title;
form.focus();
return;
};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage