console.log when providing feedback

also notify server if a users browser does not support proxies
pull/1/head
ansuz 8 years ago
parent c51073f211
commit ec041c88e2

@ -24,7 +24,6 @@ define([
Clipboard: Clipboard
};
// constants
var userHashKey = common.userHashKey = 'User_hash';
var userNameKey = common.userNameKey = 'User_name';
@ -107,6 +106,7 @@ define([
} catch (e) { return void console.error(e); }
var href = '/common/feedback.html?' + action + '=' + (+new Date());
console.log('[feedback] %s', href);
$.ajax({
type: "HEAD",
url: href,
@ -1155,6 +1155,9 @@ define([
var proxy = getProxy();
var network = getNetwork();
if (typeof(window.Proxy) === 'undefined') {
feedback("NO_PROXIES");
}
$(function() {
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
// won't work. We have to reset it now to make sure it uses a correct "body"

Loading…
Cancel
Save