Enable openURL and gotoURL in the share iframe
This commit is contained in:
@@ -488,6 +488,20 @@ define([
|
|||||||
Cryptpad.storeInTeam(data, cb);
|
Cryptpad.storeInTeam(data, cb);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
sframeChan.on('EV_GOTO_URL', function (url) {
|
||||||
|
if (url) {
|
||||||
|
window.location.href = url;
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
sframeChan.on('EV_OPEN_URL', function (url) {
|
||||||
|
if (url) {
|
||||||
|
window.open(url);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
addCommonRpc(sframeChan);
|
addCommonRpc(sframeChan);
|
||||||
|
|
||||||
@@ -956,20 +970,6 @@ define([
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
sframeChan.on('EV_GOTO_URL', function (url) {
|
|
||||||
if (url) {
|
|
||||||
window.location.href = url;
|
|
||||||
} else {
|
|
||||||
window.location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
sframeChan.on('EV_OPEN_URL', function (url) {
|
|
||||||
if (url) {
|
|
||||||
window.open(url);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
sframeChan.on('Q_PIN_GET_USAGE', function (teamId, cb) {
|
sframeChan.on('Q_PIN_GET_USAGE', function (teamId, cb) {
|
||||||
Cryptpad.isOverPinLimit(teamId, function (err, overLimit, data) {
|
Cryptpad.isOverPinLimit(teamId, function (err, overLimit, data) {
|
||||||
cb({
|
cb({
|
||||||
|
|||||||
Reference in New Issue
Block a user