Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function init () {
// Only start downloading the swf file when the checked that this browser
// actually supports it
if (!FlashWS.loaded) {
if (843 != self.policyPort) {
WebSocket.loadFlashPolicyFile('xmlsocket://' + self.hostname + ':' + self.policyPort);
}
WebSocket.__initialize();
FlashWS.loaded = true;
}
fn.call(self);
}
function init () {
// only start downloading the swf file when
// we checked that this browser actually supports it
if (!FlashWS.loaded) {
if (843 != self.policyPort) {
var policy = 'xmlsocket://' + self.hostname + ':' + self.policyPort;
WebSocket.loadFlashPolicyFile(policy);
}
WebSocket.__initialize();
FlashWS.loaded = true;
}
fn.call(self);
}