The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
chrome.extension.getURL()
Is there any function in your browser, which acts like the one in subject?I need to set up css style with image background from content(opera calls'em "injected") script, so I need a link to image, which is in extension files.
You can't directly link to image files inside the extension from an injected script. You would need to message the background thread, which would load the image using XHR, convert it into a data: URI (by hardcoding it or using a Canvas) which is then messaged back to the injected script.
See this post.
See this post.
Forums » Dev.Opera » Opera Extensions Development Discussions