mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Implement recieve loop
This commit is contained in:
parent
36ac3e576f
commit
61b4ef33e3
2 changed files with 113 additions and 26 deletions
|
@ -54,17 +54,7 @@ FFZ.prototype.ws_create = function() {
|
|||
f._ws_last_iframe = Date.now();
|
||||
f.log("Socket connected.");
|
||||
|
||||
// Check for incognito. We don't want to do a hello in incognito mode.
|
||||
var fs = window.RequestFileSystem || window.webkitRequestFileSystem;
|
||||
if (!fs)
|
||||
// Assume not.
|
||||
f.ws_send("hello", ["ffz_" + FFZ.version_info, localStorage.ffzClientId], f._ws_on_hello.bind(f));
|
||||
|
||||
else
|
||||
fs(window.TEMPORARY, 100,
|
||||
f.ws_send.bind(f, "hello", ["ffz_" + FFZ.version_info, localStorage.ffzClientId], f._ws_on_hello.bind(f)),
|
||||
f.log.bind(f, "Operating in Incognito Mode."));
|
||||
|
||||
f.ws_send("hello", ["ffz_" + FFZ.version_info, localStorage.ffzClientId], f._ws_on_hello.bind(f));
|
||||
|
||||
var user = f.get_user();
|
||||
if ( user )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue