Test
This commit is contained in:
parent
899c14bab5
commit
a27898c41b
@ -5,17 +5,17 @@ document.addEventListener("click", function(e) {
|
|||||||
//browser.tabs.create({
|
//browser.tabs.create({
|
||||||
// url: chosenPage
|
// url: chosenPage
|
||||||
//});
|
//});
|
||||||
if (e.target.textContent === 'Load') {
|
if (e.target.textContent === "Load") {
|
||||||
console.log('Load Data')
|
console.log("Load Data");
|
||||||
fetch('http://10.6.9.52:5000')
|
fetch("http://10.6.9.52:5000")
|
||||||
.then(resp => resp.text())
|
.then((resp) => resp.text())
|
||||||
.then(data => browser.tabs.create({
|
.then((data) =>
|
||||||
url: data
|
browser.tabs.create({
|
||||||
}));
|
url: data,
|
||||||
|
})
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (e.target.textContent === 'Save') {
|
if (e.target.textContent === "Save") {
|
||||||
console.log('Save Data')
|
console.log(document.querySelector(".video-stream").getCurrentTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user