p.replace() is using a regular expression to replace the file path separator pc-web. I have thought about creating a plugin but haven’t created one yet. I think if I were doing it I would edit those files in an external editor and then reload the plugin to see the effects. Or work on it as a seperate project and then dump the files into the plugin.
It would be interesting to see what Ben’s approach is.
OK - got it!
Cannot explain what I did though.
In fact I had a look into Ben’s great work (the pervious code I had is admittedly not from him - apologize) trying to figure out what’s going on. And with a bit of trying, it started to work. So always remember (Note to myself):
“99% of the mistakes are sitting in front of the screen”.
@SureWeb
I use an external editor, a lot of trial and error and looking at the frameworks bundled with PG for tips as not much info in the docs. Constant loading and unloading of Plugin to test. I find you need to completly unload the plugin JS file in PG and the reload and activate it each time when testing, to see updates (not just deactivate and reactivate).