mirror of
https://codeberg.org/vlw/stadia-avatar.git
synced 2025-09-14 07:23:41 +02:00
getComputedStyle(document.body) can now be accessed from this.style within a Page() instance. Added basic content insertion to ChangeAvatar.mjs. Page() body font-size for extension popup.
20 lines
434 B
JavaScript
20 lines
434 B
JavaScript
import { Page } from "./Page.mjs";
|
|
|
|
export class AvatarURL extends Page {
|
|
|
|
constructor() {
|
|
super(chrome.i18n.getMessage("avatar_set") + " URL");
|
|
|
|
this.appendHTML(`<p>${chrome.i18n.getMessage("avatar_set_url_support")}</p>`);
|
|
this.open();
|
|
}
|
|
|
|
content() {
|
|
const input = document.createElement("input");
|
|
const submit = document.createElement("button");
|
|
|
|
this.body.appendChild(input);
|
|
this.body.appendChild(submit);
|
|
}
|
|
|
|
}
|