From 604eaa7deedd227649a4a813bdcde4e3e2689380 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 30 Oct 2011 01:02:34 +0000 Subject: [PATCH] Removed the page unload blocking since it disconnected the client anyway --- client/js/front.events.js | 4 ++++ client/js/front.js | 1 + server/config.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/js/front.events.js b/client/js/front.events.js index 72b2da4..54499d8 100644 --- a/client/js/front.events.js +++ b/client/js/front.events.js @@ -215,9 +215,13 @@ kiwi.front.events = { } // Now that we're connected, warn the user if they really want to quit + // TODO: disable page refreshing or at least just f5 + // This brakes the socket.io connection currently :( + /* window.onbeforeunload = function() { return "Are you sure you leave Kiwi IRC?"; }; + */ }, /** * Handles the connectFail event diff --git a/client/js/front.js b/client/js/front.js index 1f9baa0..ba56bfc 100644 --- a/client/js/front.js +++ b/client/js/front.js @@ -234,6 +234,7 @@ kiwi.front = { kiwi.data.set('chanList', []); + // Load any client plugins (function () { var i; for (i in plugins) { diff --git a/server/config.json b/server/config.json index 6acc2fd..75a38be 100644 --- a/server/config.json +++ b/server/config.json @@ -45,7 +45,7 @@ ], "client_defaults": { - "server": "localhost", + "server": "irc.anonnet.org", "port": 6667, "port_ssl": 6697, "ssl": false -- 2.25.1