0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-06-01 20:34:31 +02:00

Console logging leave warning

This commit is contained in:
peteruithoven 2013-10-23 17:25:46 +02:00
parent 8bd62c93ec
commit c3fb6fc016

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;
};
}