Hey, you are right but 1) I don’t think rendering is available on desktop yet, just on mobile. 2) I think that in your case you should check for environment === desktop like the below code shows you.
if (wixWindow.rendering.env === “browser”) { $w(" #myText ").text = local.getItem(“key”); }
In this case you would only run your code in the browser and not on server and you need to run it in desktop / browser so that you can use the functions/library you use I believe.