Reputation: 141
I want to get the base URL of the safari extension from the content page itself. Presently, I can get the URL from the global page of the extension. Is there any way of getting the extension URL from the content page?
Upvotes: 0
Views: 412
Reputation: 2829
The same safari.extension.baseURI
will get you the base URL in an injected script as from the global page.
Upvotes: 3