Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

TypeScript

//// content.js ////

{ // Block used to avoid setting global variables
  const img = document.createElement('img');
  img.src = chrome.runtime.getURL('logo.png');
  document.body.append(img);
}
Source by developer.chrome.com #
 
PREVIOUS NEXT
Tagged: #TypeScript
ADD COMMENT
Topic
Name
5+2 =