浏览代码

open link in the same window

Raanan Weber 7 年之前
父节点
当前提交
1115ee0bf9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Viewer/src/templating/plugins/printButton.ts

+ 1 - 1
Viewer/src/templating/plugins/printButton.ts

@@ -35,7 +35,7 @@ export class PrintButtonPlugin extends AbstractViewerNavbarButton {
     onEvent(event: EventCallback): void {
     onEvent(event: EventCallback): void {
         if (this._currentModelUrl) {
         if (this._currentModelUrl) {
             let printUrl = this._currentModelUrl.replace(/https?:\/\//, "com.microsoft.builder3d://");
             let printUrl = this._currentModelUrl.replace(/https?:\/\//, "com.microsoft.builder3d://");
-            window.open(printUrl);
+            window.open(printUrl, "_self");
         }
         }
     }
     }