|
|
@ -641,6 +641,7 @@ define([
|
|
|
|
prefersDriveRedirect: Utils.LocalStore.getDriveRedirectPreference(),
|
|
|
|
prefersDriveRedirect: Utils.LocalStore.getDriveRedirectPreference(),
|
|
|
|
isPresent: parsed.hashData && parsed.hashData.present,
|
|
|
|
isPresent: parsed.hashData && parsed.hashData.present,
|
|
|
|
isEmbed: parsed.hashData && parsed.hashData.embed,
|
|
|
|
isEmbed: parsed.hashData && parsed.hashData.embed,
|
|
|
|
|
|
|
|
isTop: window.top === window,
|
|
|
|
canEdit: hashes && hashes.editHash,
|
|
|
|
canEdit: hashes && hashes.editHash,
|
|
|
|
oldVersionHash: parsed.hashData && parsed.hashData.version < 2, // password
|
|
|
|
oldVersionHash: parsed.hashData && parsed.hashData.version < 2, // password
|
|
|
|
isHistoryVersion: parsed.hashData && parsed.hashData.versionHash,
|
|
|
|
isHistoryVersion: parsed.hashData && parsed.hashData.versionHash,
|
|
|
@ -838,14 +839,19 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
sframeChan.on('EV_OPEN_URL', function (url) {
|
|
|
|
var openURL = function (url) {
|
|
|
|
if (url) {
|
|
|
|
if (!url) { return; }
|
|
|
|
var a = window.open(url);
|
|
|
|
var a = window.open(url);
|
|
|
|
if (!a) {
|
|
|
|
if (!a) {
|
|
|
|
sframeChan.event('EV_POPUP_BLOCKED');
|
|
|
|
sframeChan.event('EV_POPUP_BLOCKED');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sframeChan.on('EV_OPEN_URL_DIRECTLY', function () {
|
|
|
|
|
|
|
|
var url = currentPad.href;
|
|
|
|
|
|
|
|
openURL(url);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
sframeChan.on('EV_OPEN_URL', openURL);
|
|
|
|
|
|
|
|
|
|
|
|
sframeChan.on('EV_OPEN_UNSAFE_URL', function (url) {
|
|
|
|
sframeChan.on('EV_OPEN_UNSAFE_URL', function (url) {
|
|
|
|
if (url) {
|
|
|
|
if (url) {
|
|
|
|