I’m implementing a Safari Extension, I want to update ExtensionBar’s DOM from GlobalPage. How to access ExtensionBar’s DOM content from GlobalPage to update it ?
I’m implementing a Safari Extension, I want to update ExtensionBar’s DOM from GlobalPage. How
Share
The array
safari.extension.barscontains all the extension bars belonging to your extension. Note that each bar you have defined will have one instance for each open window, and all of them will be included insafari.extension.bars.To access the window object of, e.g., the first extension bar from the global page, use:
and to access the document in it: