Skip to content

Commit

Permalink
Fixing an issue when refreshing the slave.html page on IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Oct 14, 2014
1 parent c374265 commit adbb5f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/test-server/client/slave-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
};

var sendTestUpdate = function (name, info) {
if (!currentTask) {
return;
}
if (!info) {
info = {};
}
Expand Down Expand Up @@ -196,6 +199,9 @@
sendTestUpdate('error', info);
};
attester.taskFinished = function () {
if (!currentTask) {
return;
}
socket.emit('task-finished');
};
attester.stackTrace = function (exception) {
Expand Down Expand Up @@ -231,4 +237,8 @@

// Used to store methods and properties specific to the running task
attester.currentTask = {};

// Creating an empty iframe so that IE can replace its url without any harm
// (when refreshing the page, IE tries to restore the previous URL of the iframe)
createIframe(baseUrl + location.pathname.replace(/\/[^\/]+$/, "/empty.html"));
})();

0 comments on commit adbb5f5

Please sign in to comment.