fixed production bug
This commit is contained in:
parent
86228ed7dc
commit
7512402c08
@ -72,7 +72,10 @@
|
||||
<!--Embedding The signupDisabled Boolean-->
|
||||
<script type="text/javascript">
|
||||
var signupDisabled = {{signupDisabled | safe}};
|
||||
var socketPort = {{socketPort | safe}} || false;
|
||||
var socketPort = false;
|
||||
{% if socketPort %}
|
||||
socketPort = {{socketPort | safe}};
|
||||
{% endif %}
|
||||
var socketUrl = "{{socketUrl | safe}}" || false;
|
||||
var subdomainsDisabled = {{subdomainsDisabled | safe}};
|
||||
</script>
|
||||
|
||||
140
public/dist/application.js
vendored
140
public/dist/application.js
vendored
File diff suppressed because one or more lines are too long
10
public/dist/application.min.js
vendored
10
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
14
public/dist/form-application.js
vendored
14
public/dist/form-application.js
vendored
@ -1057,14 +1057,14 @@ angular.module('view-form').factory('Forms', ['$resource', 'VIEW_FORM_URL',
|
||||
socket: null
|
||||
};
|
||||
|
||||
console.log($window.socketUrl);
|
||||
console.log(window.socketUrl);
|
||||
var url = '';
|
||||
if($window.socketUrl && $window.socketPort){
|
||||
url = window.location.protocol + '//' + $window.socketUrl + ':' + $window.socketPort;
|
||||
} else if ($window.socketUrl){
|
||||
url = window.location.protocol + '//' + $window.socketUrl;
|
||||
} else if ($window.socketPort){
|
||||
url = window.location.protocol + '//' + window.location.hostname + ':' + $window.socketPort;
|
||||
if(window.socketUrl && window.socketPort){
|
||||
url = window.location.protocol + '//' + window.socketUrl + ':' + window.socketPort;
|
||||
} else if (window.socketUrl){
|
||||
url = window.location.protocol + '//' + window.socketUrl;
|
||||
} else if (window.socketPort){
|
||||
url = window.location.protocol + '//' + window.location.hostname + ':' + window.socketPort;
|
||||
} else {
|
||||
url = window.location.protocol + '//' + window.location.hostname;
|
||||
}
|
||||
|
||||
2
public/dist/form-application.min.js
vendored
2
public/dist/form-application.min.js
vendored
File diff suppressed because one or more lines are too long
18
public/dist/form_populate_template_cache.js
vendored
18
public/dist/form_populate_template_cache.js
vendored
File diff suppressed because one or more lines are too long
32
public/dist/vendor.min.js
vendored
32
public/dist/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
30
public/dist/vendor_forms_uglified.js
vendored
30
public/dist/vendor_forms_uglified.js
vendored
File diff suppressed because one or more lines are too long
@ -44,14 +44,14 @@
|
||||
socket: null
|
||||
};
|
||||
|
||||
console.log($window.socketUrl);
|
||||
console.log(window.socketUrl);
|
||||
var url = '';
|
||||
if($window.socketUrl && $window.socketPort){
|
||||
url = window.location.protocol + '//' + $window.socketUrl + ':' + $window.socketPort;
|
||||
} else if ($window.socketUrl){
|
||||
url = window.location.protocol + '//' + $window.socketUrl;
|
||||
} else if ($window.socketPort){
|
||||
url = window.location.protocol + '//' + window.location.hostname + ':' + $window.socketPort;
|
||||
if(window.socketUrl && window.socketPort){
|
||||
url = window.location.protocol + '//' + window.socketUrl + ':' + window.socketPort;
|
||||
} else if (window.socketUrl){
|
||||
url = window.location.protocol + '//' + window.socketUrl;
|
||||
} else if (window.socketPort){
|
||||
url = window.location.protocol + '//' + window.location.hostname + ':' + window.socketPort;
|
||||
} else {
|
||||
url = window.location.protocol + '//' + window.location.hostname;
|
||||
}
|
||||
|
||||
@ -38,7 +38,6 @@ angular.module('forms').run(['Menus',
|
||||
};
|
||||
}]).filter('trustSrc', ['$sce', function($sce){
|
||||
return function(formUrl){
|
||||
(' $sce.trustAsResourceUrl(formUrl): '+ $sce.trustAsResourceUrl(formUrl));
|
||||
return $sce.trustAsResourceUrl(formUrl);
|
||||
};
|
||||
}]).config(['$provide', function ($provide){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user