Selaa lähdekoodia

open link in the same window

Raanan Weber 7 vuotta sitten
vanhempi
commit
1115ee0bf9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 {
         if (this._currentModelUrl) {
             let printUrl = this._currentModelUrl.replace(/https?:\/\//, "com.microsoft.builder3d://");
-            window.open(printUrl);
+            window.open(printUrl, "_self");
         }
     }