Create Exception to Wix Lightbox

I’m using the following to post a Lightbox on all pages of my site:

import {
local
}
from ‘wix-storage’;
import wixWindow from ‘wix-window’;

$w.onReady( function () {
if (!local.getItem(“firstTimePopupShown”)) {
wixWindow.openLightbox(“Subscribe”);
local.setItem(“firstTimePopupShown”, “yes”);
}
});

What I’d like to do is suppress this Lightbox from coming up on some of my pages regardless if it is their first time visiting. What is the process for doing so using this code/function?

Hi,
I’m not sure that I fully understand what you wish to achieve. Do you wish the lightbox to be opened on a list of known pages? on all pages? Can you please clarify?

Thanks,
Tal.