TypeScript 4.3 (#910)
This commit is contained in:
parent
4d2a6999d4
commit
447db01647
|
@ -24460,9 +24460,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.2.4",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.4.tgz",
|
||||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
"integrity": "sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typestyle": {
|
"typestyle": {
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"tslint": "5.11.0",
|
"tslint": "5.11.0",
|
||||||
"tslint-microsoft-contrib": "6.0.0",
|
"tslint-microsoft-contrib": "6.0.0",
|
||||||
"typedoc": "0.20.36",
|
"typedoc": "0.20.36",
|
||||||
"typescript": "4.2.4",
|
"typescript": "4.3.4",
|
||||||
"url-loader": "1.1.1",
|
"url-loader": "1.1.1",
|
||||||
"wait-on": "4.0.2",
|
"wait-on": "4.0.2",
|
||||||
"webpack": "4.46.0",
|
"webpack": "4.46.0",
|
||||||
|
|
|
@ -7,8 +7,10 @@ export interface IGitHubConnectorParams {
|
||||||
|
|
||||||
export const GitHubConnectorMsgType = "GitHubConnectorMsgType";
|
export const GitHubConnectorMsgType = "GitHubConnectorMsgType";
|
||||||
|
|
||||||
export class GitHubConnector {
|
window.addEventListener("load", async () => {
|
||||||
public async start(params: URLSearchParams, window: Window & typeof globalThis): Promise<void> {
|
const openerWindow = window.opener;
|
||||||
|
if (openerWindow) {
|
||||||
|
const params = new URLSearchParams(document.location.search);
|
||||||
await postRobot.send(
|
await postRobot.send(
|
||||||
window,
|
window,
|
||||||
GitHubConnectorMsgType,
|
GitHubConnectorMsgType,
|
||||||
|
@ -20,14 +22,6 @@ export class GitHubConnector {
|
||||||
domain: window.location.origin,
|
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();
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue