From ed5f2259c3d7d1bdca1af6047ac2bb5eb30937d1 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 18 Jun 2014 07:36:42 +0100 Subject: [PATCH] Should be just the tab number passed in --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 39038d6..66cefd0 100644 --- a/index.php +++ b/index.php @@ -47,7 +47,7 @@ iceRoot = ""; window.onbeforeunload = function() { for(var i=1;i<=ICEcoder.savedPoints.length;i++) { - if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(ICEcoder.cMInstances[i-1]).changeGeneration()) { + if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) { return "You have some unsaved changes."; } }