mirror of
https://github.com/miljegen/browser-milje.git
synced 2024-12-22 07:27:29 +00:00
5 lines
188 B
JavaScript
5 lines
188 B
JavaScript
|
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||
|
if (message.type === "setMilje") {
|
||
|
document.body.style.background = `url(${message.milje})`;
|
||
|
}
|
||
|
});
|