TypeScript 4.3 (#910)

This commit is contained in:
Steve Faulkner 2021-06-24 19:14:26 -05:00 committed by GitHub
parent 4d2a6999d4
commit 447db01647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 14 deletions

6
package-lock.json generated
View File

@ -24460,9 +24460,9 @@
"dev": true
},
"typescript": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.4.tgz",
"integrity": "sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==",
"dev": true
},
"typestyle": {

View File

@ -174,7 +174,7 @@
"tslint": "5.11.0",
"tslint-microsoft-contrib": "6.0.0",
"typedoc": "0.20.36",
"typescript": "4.2.4",
"typescript": "4.3.4",
"url-loader": "1.1.1",
"wait-on": "4.0.2",
"webpack": "4.46.0",

View File

@ -7,8 +7,10 @@ export interface IGitHubConnectorParams {
export const GitHubConnectorMsgType = "GitHubConnectorMsgType";
export class GitHubConnector {
public async start(params: URLSearchParams, window: Window & typeof globalThis): Promise<void> {
window.addEventListener("load", async () => {
const openerWindow = window.opener;
if (openerWindow) {
const params = new URLSearchParams(document.location.search);
await postRobot.send(
window,
GitHubConnectorMsgType,
@ -20,14 +22,6 @@ export class GitHubConnector {
domain: window.location.origin,
}
);
}
}
var connector = new GitHubConnector();
window.addEventListener("load", async () => {
const openerWindow = window.opener;
if (openerWindow) {
await connector.start(new URLSearchParams(document.location.search), openerWindow);
window.close();
}
});