☰
Debian Codegraph
@
8.7.1-1
/
/
tools
/
crx-example
/
getting-started
/
background.js
☽
☼
tools/crx-example/getting-started/background.js
code
plain
raw
GPL-3+
2006-2011 Brett Smith <
[email protected]
>; 2008 Peter Kelemen <
[email protected]
>; 2011 Ville Skyttä <
[email protected]
>; 2020 Noah Pendleton
debian/copyright
1
let color = '#3aa757';
2
3
chrome.runtime.onInstalled.addListener(() => {
4
chrome.storage.sync.set({ color });
5
console.log('Default background color set to %cgreen', `color: ${color}`);
6
});