I tried deregistering the script and create a copy of the script without the reload function. This is how I did it:
My idea here is to detect if you are on customizer with
app-js, and enqueue the script
appc-js which hasn't got the reload function.
But this doesn't seem to work. Is it because the Customizer views the page without modifications? Are you able to do something like this? Modifying the page functions when viewed in Customizer?
Is there any other approach to this? Like doing this in jQuery?