<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mamorums</author_name>
  <author_url>https://blog.hatena.ne.jp/mamorums/</author_url>
  <blog_title>C#, Python, Web開発</blog_title>
  <blog_url>https://web-dev.hatenablog.com/</blog_url>
  <categories>
    <anon>JS/CSS/HTML</anon>
  </categories>
  <description>Electron アプリについて、画面サイズの保存方法と設定方法を書いていきます。 前提 Electron アプリは、デフォルトだとユーザがウィンドウサイズを変更できます。ただ、変更したサイズは保存されないので、メインプロセス内で保存と設定をする必要があります。 コード例 メインプロセスのコード例（一部抜粋）は以下の通りです。 const {app, BrowserWindow} = require('electron'); const path = require('path'); const fs = require(&quot;fs&quot;); let win = null; //-&gt; ウィンドウサイズ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fweb-dev.hatenablog.com%2Fentry%2Fweb%2Fjs%2Felectron%2Fwindow%2Fsave-and-set-bounds&quot; title=&quot;Electron：ウィンドウサイズの保存と設定 - C#, Python, Web開発&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-10 08:00:00</published>
  <title>Electron：ウィンドウサイズの保存と設定</title>
  <type>rich</type>
  <url>https://web-dev.hatenablog.com/entry/web/js/electron/window/save-and-set-bounds</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
