From 18f7bf1112bb10f53878e31cb73928bfcac17293 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 12 Aug 2011 15:36:54 +0000 Subject: [PATCH] Don't save before CSS has been loaded --- chrome/content/zotero/xpcom/server_connector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index e4ea4ecce9..e57ecc7b0a 100755 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -352,7 +352,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = { var pageShowCalled = false; var cookieSandbox = new Zotero.CookieSandbox(browser, data["url"], data["cookie"]); - browser.addEventListener("DOMContentLoaded", function() { + browser.addEventListener("pageshow", function() { if(browser.contentDocument.location.href == "about:blank") return; if(pageShowCalled) return; pageShowCalled = true;