add feedback keys

pull/1/head
ansuz 6 years ago
parent 107c352922
commit bcd6a4b6c6

@ -89,6 +89,7 @@ define([
value: token value: token
}, function (obj) { }, function (obj) {
if (obj && obj.error) { return void cb(obj.error); } if (obj && obj.error) { return void cb(obj.error); }
Feedback.send('LOGOUT_EVERYWHERE');
cb(); cb();
}); });
}; };
@ -118,7 +119,14 @@ define([
}; };
// Settings // Settings
common.deleteAccount = function (cb) { common.deleteAccount = function (cb) {
postMessage("DELETE_ACCOUNT", null, cb); postMessage("DELETE_ACCOUNT", null, function (obj) {
if (obj.state) {
Feedback.send('DELETE_ACCOUNT_AUTOMATIC');
} else {
Feedback.send('DELETE_ACCOUNT_MANUAL');
}
cb(obj);
});
}; };
// Drive // Drive
common.userObjectCommand = function (data, cb) { common.userObjectCommand = function (data, cb) {
@ -1099,6 +1107,14 @@ define([
return doesSupport; return doesSupport;
}; };
common.isWebRTCSupported = function () {
return navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia ||
window.RTCPeerConnection;
};
common.ready = (function () { common.ready = (function () {
var env = {}; var env = {};
var initialized = false; var initialized = false;
@ -1114,6 +1130,10 @@ define([
Feedback.send("NO_PROXIES"); Feedback.send("NO_PROXIES");
} }
if (!common.isWebRTCSupported()) {
Feedback.send("NO_WEBRTC");
}
var shimPattern = /CRYPTPAD_SHIM/; var shimPattern = /CRYPTPAD_SHIM/;
if (shimPattern.test(Array.isArray.toString())) { if (shimPattern.test(Array.isArray.toString())) {
Feedback.send("NO_ISARRAY"); Feedback.send("NO_ISARRAY");

Loading…
Cancel
Save