Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing an issue when refreshing the slave.html page on IE. #106

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"));
})();