Removed channel-name tap-target

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-26 11:20:29 +02:00
parent 6777ace942
commit 61647e96c7
3 changed files with 0 additions and 18 deletions

View File

@@ -157,15 +157,6 @@ var Channel = {
emit_list();
}
if(((!localStorage.getItem("_jSeen") || localStorage.getItem("_jSeen") != "seen") && !Helper.mobilecheck()) && !client) {
var instance = M.TapTarget.init(document.getElementsByClassName('tap-target-join')[0]);
instance.open();
tap_target_timeout = setTimeout(function() {
instance.close();
}, 4000);
localStorage.setItem("_jSeen", "seen");
}
if(!Helper.mobilecheck()) {
if(!client) {
Helper.tooltip("#chan", {
@@ -529,10 +520,6 @@ var Channel = {
if(tap_1.length > 0 && M.TapTarget.getInstance(tap_1[0])) {
M.TapTarget.getInstance(tap_1[0]).close();
}
var tap_2 = document.querySelectorAll(".tap-target-join")
if(tap_2.length > 0 && M.TapTarget.getInstance(tap_2[0])) {
M.TapTarget.getInstance(tap_2[0]).close();
}
}
clearTimeout(tap_target_timeout);
before_toast();

View File

@@ -60,10 +60,6 @@
<p>This site supports chromecasting!</p>
</div>
</div>
<div class="tap-target-join" data-target="chan">
<div class="tap-target-content">
</div>
</div>
{{/unless}}
{{> contact}}
{{> donate}}

View File

@@ -1095,7 +1095,6 @@ function incrementToken(token) {
router.route('/api/color').post(function(req, res) {
var origin = req.get("origin").replace("https://", "").replace("http://", "");
var allowed = ["client.localhost", "localhost", "zoff.me", "client.zoff.me", "zoff.no", "client.zoff.no"];
console.log(req.body);
if(allowed.indexOf(origin) < 0) {
res.sendStatus(403);
return;