console.log when providing feedback
also notify server if a users browser does not support proxies
This commit is contained in:
@@ -24,7 +24,6 @@ define([
|
|||||||
Clipboard: Clipboard
|
Clipboard: Clipboard
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// constants
|
// constants
|
||||||
var userHashKey = common.userHashKey = 'User_hash';
|
var userHashKey = common.userHashKey = 'User_hash';
|
||||||
var userNameKey = common.userNameKey = 'User_name';
|
var userNameKey = common.userNameKey = 'User_name';
|
||||||
@@ -107,6 +106,7 @@ define([
|
|||||||
} catch (e) { return void console.error(e); }
|
} catch (e) { return void console.error(e); }
|
||||||
|
|
||||||
var href = '/common/feedback.html?' + action + '=' + (+new Date());
|
var href = '/common/feedback.html?' + action + '=' + (+new Date());
|
||||||
|
console.log('[feedback] %s', href);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "HEAD",
|
type: "HEAD",
|
||||||
url: href,
|
url: href,
|
||||||
@@ -1155,6 +1155,9 @@ define([
|
|||||||
var proxy = getProxy();
|
var proxy = getProxy();
|
||||||
var network = getNetwork();
|
var network = getNetwork();
|
||||||
|
|
||||||
|
if (typeof(window.Proxy) === 'undefined') {
|
||||||
|
feedback("NO_PROXIES");
|
||||||
|
}
|
||||||
$(function() {
|
$(function() {
|
||||||
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
|
// 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"
|
// won't work. We have to reset it now to make sure it uses a correct "body"
|
||||||
|
|||||||
Reference in New Issue
Block a user