mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 14:28:33 +02:00
* Replace var with let in examples store-collected-images/webextension-plain/deps/uuidv4.js * Reverted third–party code
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 => {
|
|
let display = document.getElementById('display');
|
|
|
|
display.innerHTML = data;
|
|
});
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', start);
|