Console logging leave warning

This commit is contained in:
peteruithoven 2013-10-23 17:25:46 +02:00
parent 8bd62c93ec
commit c3fb6fc016
1 changed files with 1 additions and 0 deletions

View File

@ -325,6 +325,7 @@ function Printer() {
}
this.addLeaveWarning = function() {
window.onbeforeunload = function() {
console.log("WARNING:"+Printer.ON_BEFORE_UNLOAD_MESSAGE);
return Printer.ON_BEFORE_UNLOAD_MESSAGE;
};
}