From 14f241d99d12ad87da52b13b1ff36325fcc396a6 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 13 Dec 2016 11:13:50 +0200 Subject: [PATCH] click to refresh errors --- public/js/app/workspace.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.20.1