Hi,
I have started since few time to learn how to build plugins for Bubble.
After having read the official documentation, since it was not clear to me how to move on, I decided to look through the code of an existing plugin, in order to see if I could get a better understanding.
As my current goal is that to build a plugin to integrate Google Maps in Bubble (I have looked for some existing plugin that did what i needed but I can’t find it and, anyway I have the willingness to learn how to build them) I have looked through the code of the Google Maps Extended plugin by “The Upstarters” team.
In the element tab, in the header section, they add a script with some functions which refer to some HTML document window object properties/methods.
In particular, to check if the page has finished to load the application they check:
- window.appquery and window.app as well;
Then, in order to check if Google Maps API have been already loaded and if the API keys are set, they use:
- window.app.settings.client_safe.general_keys.google_map_key as well as window.gm_key.
So, in my understanding, these window object properties/methods (window.appquery should be a function if I am not wrong) are added by Bubble during the building phase of the app page.
But I don’t know and can’t figure out what they are for, when Bubble adds them and if there are other props/methods that Bubble adds/edits/deletes to the HTML window object or to other elements of the HTML document.
At this point, I would like to ask if someone maybe knows and is willing to share which properties/methods, in general, Bubble adds to the HTML window object (and to other HTML document elements, if any) and what they are there for. Or alternatively, if there is some resource on this topic (I couldn’t find anywhere) that can be shared. Thank you very much!