Refactoring and cleanup

This commit is contained in:
2022-07-25 22:03:54 +00:00
parent ae916a3900
commit 947735292a
16 changed files with 132 additions and 144 deletions

View File

@@ -427,7 +427,7 @@ const ConnectionMixin = (SuperClass) => {
}
async _reregister(newData = {}) {
await this.connection.sendMessage({
type: "browser_mod/reregister",
type: "browser_mod/register",
browserID: this.browserID,
data: Object.assign(Object.assign({}, this.browsers[this.browserID]), newData),
});
@@ -519,7 +519,7 @@ const ConnectionMixin = (SuperClass) => {
((_b = this.browsers) === null || _b === void 0 ? void 0 : _b[this.browserID]) === undefined) {
(async () => {
await this.connection.sendMessage({
type: "browser_mod/reregister",
type: "browser_mod/register",
browserID: oldID,
data: Object.assign(Object.assign({}, this.browsers[oldID]), { browserID: this.browserID }),
});