We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deccd6e commit cb770a5Copy full SHA for cb770a5
src/services/cnblogs-oauth.service.ts
@@ -92,7 +92,14 @@ export class CnblogsOAuthService extends Disposable {
92
throw Error(`Unable to resolve authorization code from callback url, ${req.originalUrl}`);
93
}
94
authorizationInfo = await this.getAuthorizationInfo(code, this._codeVerifier);
95
- res.send('授权成功, 您现在可以关闭此页面, 返回vscode.');
+ res.send(
96
+ `<p>授权成功, 您现在可以关闭此页面, 返回vscode.</p>
97
+ <script type="text/javascript">
98
+ var el = document.createElement('a');
99
+ el.href='vscode://vscode.vscode-cnb';
100
+ el.click();
101
+ </script>`
102
+ );
103
} catch (err) {
104
error = err;
105
const stringifiedError = JSON.stringify(err, undefined, 4);
0 commit comments