Commit 5020a190 authored by 神楽坂玲奈's avatar 神楽坂玲奈

修正聊天室

parent 44f23d56
...@@ -60,4 +60,4 @@ ...@@ -60,4 +60,4 @@
<roster></roster> <roster></roster>
</div> </div>
<webview *ngIf="currentApp" #candy id="candy" [src]="candy_url" nodeintegration></webview> <webview *ngIf="currentApp" #candy id="candy" [src]="candy_url" (new-window)="openExternal($event.url)" nodeintegration></webview>
...@@ -8,6 +8,7 @@ import {App, Category} from "./app"; ...@@ -8,6 +8,7 @@ import {App, Category} from "./app";
import {DownloadService} from "./download.service"; import {DownloadService} from "./download.service";
import {InstallService} from "./install.service"; import {InstallService} from "./install.service";
import {Http, URLSearchParams} from "@angular/http"; import {Http, URLSearchParams} from "@angular/http";
import {shell} from "electron";
import WebViewElement = Electron.WebViewElement; import WebViewElement = Electron.WebViewElement;
@Component({ @Component({
...@@ -77,4 +78,8 @@ export class LobbyComponent implements OnInit { ...@@ -77,4 +78,8 @@ export class LobbyComponent implements OnInit {
} }
return result return result
} }
openExternal(url: string) {
shell.openExternal(url);
}
} }
This diff is collapsed.
{ {
"name": "mycard", "name": "mycard",
"version": "3.0.0-dev.12", "version": "3.0.0-dev.13",
"description": "mycard", "description": "mycard",
"keywords": [], "keywords": [],
"author": "zh99998 <zh99998@gmail.com>", "author": "zh99998 <zh99998@gmail.com>",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment