send feedback on noDrive and conversion from noDrive

pull/1/head
ansuz 4 years ago
parent b327907fdf
commit 5772887876

@ -2028,7 +2028,6 @@ define([
}); });
}; };
var launchedWithNoDrive = false;
var provideFeedback = function () { var provideFeedback = function () {
if (typeof(window.Proxy) === 'undefined') { if (typeof(window.Proxy) === 'undefined') {
Feedback.send("NO_PROXIES"); Feedback.send("NO_PROXIES");
@ -2065,10 +2064,6 @@ define([
if (!common.hasCSSVariables()) { if (!common.hasCSSVariables()) {
Feedback.send('NO_CSS_VARIABLES'); Feedback.send('NO_CSS_VARIABLES');
} }
if (launchedWithNoDrive) {
Feedback.send('NO_DRIVE');
}
Feedback.reportScreenDimensions(); Feedback.reportScreenDimensions();
Feedback.reportLanguage(); Feedback.reportLanguage();
}; };
@ -2297,10 +2292,6 @@ define([
}; };
common.userHash = userHash; common.userHash = userHash;
if (rdyCfg.noDrive) {
launchedWithNoDrive = true;
}
// FIXME Backward compatibility // FIXME Backward compatibility
if (sessionStorage.newPadFileData) { if (sessionStorage.newPadFileData) {
common.fromFileData = JSON.parse(sessionStorage.newPadFileData); common.fromFileData = JSON.parse(sessionStorage.newPadFileData);

@ -3068,14 +3068,19 @@ define([
if (obj.error === 'GET_HK') { if (obj.error === 'GET_HK') {
data.noDrive = false; data.noDrive = false;
Store.init(clientId, data, _callback); Store.init(clientId, data, _callback);
Feedback.send("NO_DRIVE_ERROR", true);
return; return;
} }
} }
Feedback.send("NO_DRIVE", true);
callback(obj); callback(obj);
}); });
} }
initialized = true; initialized = true;
if (store.noDriveUid) {
Feedback.send('NO_DRIVE_CONVERSION', true);
}
store.data = data; store.data = data;
connect(clientId, data, function (ret) { connect(clientId, data, function (ret) {

Loading…
Cancel
Save