mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-15 22:28:56 +00:00
21 lines
484 B
HTML
21 lines
484 B
HTML
<!DOCTYPE html>
|
|
<script>
|
|
var width, url;
|
|
function maybeReport() {
|
|
if (width !== undefined && url !== undefined) {
|
|
window.parent.postMessage({status: "result",
|
|
width: width,
|
|
url: url}, "*");
|
|
}
|
|
}
|
|
onload = function() {
|
|
width = document.querySelector("img").width;
|
|
maybeReport();
|
|
};
|
|
navigator.serviceWorker.onmessage = function(event) {
|
|
url = event.data;
|
|
maybeReport();
|
|
};
|
|
</script>
|
|
<img src="image-20px.png">
|