click to refresh errors
[namibia] / public / js / app / workspace.js
index 1ae932b..0088d30 100644 (file)
                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();
                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();