FANDOM


/**

* This file was minified with the YUI Compressor
* to see the full version go to RailgunServer.js
* to see the documentation go to Docs/Files
*/

RailgunServer={isDebug:false,keys:["friends","siderailHidden"],version:"1.1.0",getItem:function(a){return JSON.parse(window.localStorage.getItem(a))},setItem:function(a,b){if(-1===this.keys.indexOf(a)){return false}else{window.localStorage.setItem(a,JSON.stringify(b));return true}},reset:function(){for(var a=0;a<this.keys.length;a++){window.localStorage.removeItem(this.keys[a])}},retrieve:function(){var a={};for(var b in window.localStorage){if(-1!==this.keys.indexOf(b)){a[b]=this.getItem(b)}}return a},processRequest:function(c){if(-1===c.origin.indexOf(".wikia.com")){return}var b=JSON.parse(c.data);var a=b;a.status="success";switch(b.instruction){case"setItem":if(RailgunServer.setItem(b.key,b.value)){a.status="failure: unrecognized key"}break;case"getItem":a.value=RailgunServer.getItem(b.key);break;case"reset":RailgunServer.reset();break;case"retrieve":RailgunServer.isDebug=b.isDebug?true:false;a.serverState={isDebug:RailgunServer.isDebug,keys:RailgunServer.keys,version:RailgunServer.version};a.storageState=RailgunServer.retrieve();break;default:console.log("Server did not recognize "+b.instruction+" instruction.")}if(RailgunServer.isDebug){console.log("Server has finished processing "+b.instruction+" request:");console.log(a)}c.source.postMessage(JSON.stringify(a),c.origin)}};if(window.addEventListener){window.addEventListener("message",RailgunServer.processRequest,false)}else{if(window.attachEvent){window.attachEvent("message",RailgunServer.processRequest)}};

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.