Is there any kotlin wrapper around the browser API...
# announcements
g
Is there any kotlin wrapper around the browser API to build extensions?
g
k
g
Yes, I mean there is no official ones, that why I reference your article :) I'm also curious about Chrome extension declaration, could your generator be reused for chrome
👍 1
k
It most certainly could be reused. the chrome declarations can be found here: https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api but many apis are the same except that the root object is called
chrome
, not
browser
. extensions that target both browsers can use a polyfill, something like https://github.com/kee-org/browser-addon/blob/bad6039589ac2b0b9af5af7cf435008d316b5983/common/browser-polyfill.js