Skip to content

Commit

Permalink
Request permission on FS popup click; link spec
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwasserman authored Oct 9, 2023
1 parent de6f658 commit 8846c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta http-equiv="origin-trial" content="AoWSJsyqHYvrE3EzAU+7iYotMK+Z4txxnLE8wj28qRv/n1DXC8B19kl7XRsVdNPunfVITYlQjPaNhH04wwMrnQAAAABqeyJvcmlnaW4iOiJodHRwczovL21pY2hhZWx3YXNzZXJtYW4uZ2l0aHViLmlvOjQ0MyIsImZlYXR1cmUiOiJGdWxsc2NyZWVuUG9wdXBXaW5kb3dzIiwiZXhwaXJ5IjoxNzE0NTIxNTk5fQ==">
</head>
<body>
<h3>Window Management Demo (<a href="https://github.com/michaelwasserman/window-placement-demo">GitHub</a>)</h3>
<h3>Window Management Demo (<a href="https://github.com/michaelwasserman/window-placement-demo">GitHub</a>, <a href="https://w3c.github.io/window-management/">Spec</a>)</h3>
<h4 id="warning" hidden=true style="color: red;"></h4>
<div class="controls">
<div id="openWindowControls" style="display:flex; align-items:center;">
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ async function openNotesWindow(screenId) {
}

async function fullscreenPopup(screenId) {
const screens = await getScreenDetailsWithWarningAndFallback();
const screens = await getScreenDetailsWithWarningAndFallback(/*requestPermission=*/true);
const s = screens[screenId] || screens[0] || window.screen;
const options = { url:'./popup.html', fullscreen: true,
x:s.availLeft, y:s.availTop,
Expand Down

0 comments on commit 8846c15

Please sign in to comment.