mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
14 lines
348 B
JavaScript
14 lines
348 B
JavaScript
// This special eslint comment declares that the code below relies on
|
|
// a named function in the global scope.
|
|
|
|
/* global getUsefulContents */
|
|
function start() {
|
|
getUsefulContents(data => {
|
|
var display = document.getElementById('display');
|
|
|
|
display.innerHTML = data;
|
|
});
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', start);
|