Fixed submission bug when adblocker is present
This commit is contained in:
parent
0f3f23f3f1
commit
46d71481da
@ -302,6 +302,12 @@ angular.module('view-form').directive('submitFormDirective', ['$http', 'TimeCoun
|
||||
var geoData = $.getJSON('https://freegeoip.net/json/').responseJSON;
|
||||
$.ajaxSetup( { 'async': true } );
|
||||
|
||||
if(!geoData || !geoData.ip){
|
||||
geoData = {
|
||||
ip: 'Adblocker'
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
ipAddr: geoData.ip,
|
||||
geoLocation: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user