From: Mark Date: Tue, 13 Dec 2016 09:13:50 +0000 (+0200) Subject: click to refresh errors X-Git-Url: https://xp-dev.com/git/namibia/commitdiff_plain/14f241d99d12ad87da52b13b1ff36325fcc396a6?ds=sidebyside click to refresh errors --- diff --git a/public/js/app/workspace.js b/public/js/app/workspace.js index 1ae932b..0088d30 100644 --- a/public/js/app/workspace.js +++ b/public/js/app/workspace.js @@ -1155,12 +1155,13 @@ taskContractError : function( response ) { console.log(response); + console.log(window.location.hostname); App.API.getTask( 'getActiveAccount', 'User', 'Profile.ActiveAccount', null, {}, function() { if ('namibia.nirph.com' != window.location.hostname && 'namibia.local' != window.location.hostname - && 'bid4cars.com.na' != window.location.hostname) + && 'www.bid4cars.com.na' != window.location.hostname) { alert('Please click ok to refresh this page.'); location.reload(); @@ -1176,12 +1177,13 @@ taskExecError : function( response ) { console.log(response); + console.log(window.location.hostname); App.API.getTask( 'getActiveAccount', 'User', 'Profile.ActiveAccount', null, {}, function() { if ('namibia.nirph.com' != window.location.hostname && 'namibia.local' != window.location.hostname - && 'bid4cars.com.na' != window.location.hostname) + && 'www.bid4cars.com.na' != window.location.hostname) { alert('Please click ok to refresh this page.'); location.reload();