stadia-avatar/client/extension/assets/js/popup_modules/ChangeAvatar.mjs
Victor Westerlund 62e493cbfd Streamlined getComputedStyle(document.body)
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.
2021-02-08 11:09:06 +01:00

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);
}
}