It doesn’t seem to be working with API. I guess because it isn’t actually a tablet, it’s just the viewport being bigger or smaller than others. I am thinking I need to use some kind of hide function when the window hits a certain break point… I’m just not code savvy enough to know how to get this to happen.
Maybe something like:
if (windowWidth > 1280)
{ $w(“#element”).hide();
Or something to do with:
wixWindow.getBoundingRect()
6 .then( (windowSizeInfo) => {
7 let windowHeight = windowSizeInfo.window.height; // 565
8 let windowWidth = windowSizeInfo.window.width; // 1269