|
|
@ -569,6 +569,7 @@ define([
|
|
|
|
isPresent: parsed.hashData && parsed.hashData.present,
|
|
|
|
isPresent: parsed.hashData && parsed.hashData.present,
|
|
|
|
isEmbed: parsed.hashData && parsed.hashData.embed,
|
|
|
|
isEmbed: parsed.hashData && parsed.hashData.embed,
|
|
|
|
isHistoryVersion: parsed.hashData && parsed.hashData.versionHash,
|
|
|
|
isHistoryVersion: parsed.hashData && parsed.hashData.versionHash,
|
|
|
|
|
|
|
|
notifications: Notification && Notification.permission === "granted",
|
|
|
|
accounts: {
|
|
|
|
accounts: {
|
|
|
|
donateURL: Cryptpad.donateURL,
|
|
|
|
donateURL: Cryptpad.donateURL,
|
|
|
|
upgradeURL: Cryptpad.upgradeURL
|
|
|
|
upgradeURL: Cryptpad.upgradeURL
|
|
|
@ -1569,9 +1570,13 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (cfg.messaging) {
|
|
|
|
sframeChan.on('Q_ASK_NOTIFICATION', function (data, cb) {
|
|
|
|
Notifier.getPermission();
|
|
|
|
Notification.requestPermission(function (s) {
|
|
|
|
|
|
|
|
cb(s === "granted");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cfg.messaging) {
|
|
|
|
sframeChan.on('Q_CHAT_OPENPADCHAT', function (data, cb) {
|
|
|
|
sframeChan.on('Q_CHAT_OPENPADCHAT', function (data, cb) {
|
|
|
|
Cryptpad.universal.execCommand({
|
|
|
|
Cryptpad.universal.execCommand({
|
|
|
|
type: 'messenger',
|
|
|
|
type: 'messenger',
|
|
|
|