diff --git a/chrome/content/zotero/tabs.js b/chrome/content/zotero/tabs.js index fa7f536db0..12890b49e1 100644 --- a/chrome/content/zotero/tabs.js +++ b/chrome/content/zotero/tabs.js @@ -30,9 +30,10 @@ var React = require('react'); var ReactDOM = require('react-dom'); import TabBar from 'components/tabBar'; -// Reduce loaded tabs limit if the system has 8 GB or less memory. +// Reduce loaded tabs limit if the system has 8 GB or less memory, or it's running +// on Windows which means it doesn't support more than 3 GB // TODO: Revise this after upgrading to Zotero 7 -const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 ? 2 : 5; +const MAX_LOADED_TABS = Services.sysinfo.getProperty("memsize") / 1024 / 1024 / 1024 <= 8 || Zotero.isWin ? 2 : 5; const UNLOAD_UNUSED_AFTER = 86400; // 24h var Zotero_Tabs = new function () {