Saku's Blog

Chrome plugin CSS get URL file path from plugin folder

Format:

chrome-extension://MSG_@@extension_id/image.jpg

Example:

body {
background: url(“chrome-extension://MSG_@@extension_id/background.jpg”);
}

Remember to add the file to web_accessible_resources in the plugin’s manifest.json. Otherwise, the file will not be accessable to the plugins.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.