[Pale-Moon] Issue #1772 - Follow-up: properly reference restoreOnDemand (oops!)

This commit is contained in:
Moonchild 2020-07-28 10:06:32 +00:00 committed by Roy Tam
commit ce9a763cdb

View file

@ -3240,7 +3240,7 @@ var SessionStoreInternal = {
// but only if restoring on demand, to prevent request flooding (since
// reloading will override the max tabs to restore concurrently mechanism).
// See Issue #1772
if (restoreOnDemand) {
if (TabRestoreQueue.prefs.restoreOnDemand) {
let flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
switch (this._cacheBehavior) {
case 2: // hard refresh