Use the bounce app to open links from inner

This commit is contained in:
yflory
2017-11-27 14:44:44 +01:00
parent 812df7de6f
commit 644f6e9985
7 changed files with 42 additions and 39 deletions

View File

@@ -299,6 +299,10 @@ define([
funcs.gotoURL = function (url) { ctx.sframeChan.event('EV_GOTO_URL', url); };
funcs.openURL = function (url) { ctx.sframeChan.event('EV_OPEN_URL', url); };
funcs.openUnsafeURL = function (url) {
var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(url);
window.open(bounceHref);
};
funcs.whenRealtimeSyncs = evRealtimeSynced.reg;