click to refresh errors
authorMark <mark@nirph.com>
Tue, 13 Dec 2016 09:13:50 +0000 (11:13 +0200)
committerMark <mark@nirph.com>
Tue, 13 Dec 2016 09:13:50 +0000 (11:13 +0200)
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();