mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
create working extension with eslint configured locally
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import {
|
||||
getUsefulContents
|
||||
} from "file";
|
||||
// not supported in Firefox
|
||||
// import { getUsefulContents } from "file";
|
||||
|
||||
getUsefulContents("http://www.example.com", data => {
|
||||
doSomethingUseful(data);
|
||||
});
|
||||
function start() {
|
||||
getUsefulContents(data => {
|
||||
var display = document.getElementById('display');
|
||||
|
||||
display.innerHTML = data;
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', start);
|
||||
Reference in New Issue
Block a user