You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
390 B

  1. let changeColor = document.getElementById('changeColor');
  2. chrome.storage.sync.get('color', function(data) {
  3. changeColor.style.backgroundColor = data.color;
  4. changeColor.setAttribute('value', data.color);
  5. });
  6. chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
  7. console.log("test");
  8. chrome.tabs.executeScript(
  9. tabs[0].id,
  10. {file: 'contentScript.js'});
  11. });