Skip to content

Commit ed5f225

Browse files
committed
Should be just the tab number passed in
1 parent b344d1e commit ed5f225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
window.onbeforeunload = function() {
4949
for(var i=1;i<=ICEcoder.savedPoints.length;i++) {
50-
if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(ICEcoder.cMInstances[i-1]).changeGeneration()) {
50+
if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) {
5151
return "You have some unsaved changes.";
5252
}
5353
}

0 commit comments

Comments
 (0)