Skip to content

Commit

Permalink
docs: fix MPA inline variables
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Jul 14, 2023
1 parent 0a8c552 commit da4dd73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/components/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ <h2 slot=heading>Sample</h2>
url.searchParams.append('panes', document.getElementById('panes').value);
document.getElementById('iframe').src = url.href;
}
const demoSection = document.getElementById('demo-section');
const resizeObserver = new ResizeObserver((entries) => {
var demoSection = document.getElementById('demo-section');
var resizeObserver = new ResizeObserver((entries) => {
sectionWidth = entries[0].contentRect.width;
refreshSize();
});
Expand Down
5 changes: 2 additions & 3 deletions docs/components/snackbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
<link rel="stylesheet" href="../theme.css" />
<link rel="stylesheet" href="../demo.css" />
<script src="../demo.min.js"></script>

</head>
<body>
<demo-page>
<script>
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
var $ = document.querySelector.bind(document);
var $$ = document.querySelectorAll.bind(document);
</script>
<demo-section>
<h1 slot="heading">Single-line</h1>
Expand Down

0 comments on commit da4dd73

Please sign in to comment.