3
電子アプリからウィンドウを開こうとしています。この開いたウィンドウのノード統合をfalseに設定しようとしています。電子アプリでwindow.openを使用する
const MyButton = (props: any) => {
return props.url ? <a className="my-btn" onClick={() => {
let win = window.open("http://www.google.com/", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=500,left=500,width=400,height=400");
console.log('Is open: ' + !win.closed);
}} target="_blank">My Button</a> : null;
};
問題は、私はウィンドウのポップアップが表示されません。