Additionally replaces a few indexOfs with has_hash, fixes zombie posts hanging around and removes $rotonde from the Portals tab (those fixes could be separated and applied to master, but aren't critical).
Portal now has got a basic onparse handler array, which should contain functions in the format of (json) => {...; return true / false;}, true meaning that the portal will be registered, false meaning that the portal will be ignored. this is the portal the handler's running against at the moment.
The connection queue now accepts objects with url and optional oncreate and onparse handlers. oncreate allows setting is_remote = true; early enough.
Additionally replaces a few
indexOf
s withhas_hash
, fixes zombie posts hanging around and removes $rotonde from the Portals tab (those fixes could be separated and applied to master, but aren't critical).Portal now has got a basic
onparse
handler array, which should contain functions in the format of(json) => {...; return true / false;}
,true
meaning that the portal will be registered,false
meaning that the portal will be ignored.this
is the portal the handler's running against at the moment.The connection queue now accepts objects with
url
and optionaloncreate
andonparse
handlers.oncreate
allows settingis_remote = true;
early enough.