Skip to content

Commit

Permalink
refactor: remove unwanted code blocks from index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Nov 17, 2024
1 parent 0a377de commit 93581ce
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,15 @@
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"
/>



<title>Notpad</title>
<link rel="icon" href="/Notpad/favicon.png" />
</head>

<body spellcheck="false" oncontextmenu="return false;">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<script>
window.addEventListener("resize", () => {
const viewport = document.querySelector("meta[name=viewport]");
if (viewport) {
viewport.setAttribute(
"content",
`width=device-width, height=${window.innerHeight}px, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content`
);
}
});
</script>
</body>
</html>

0 comments on commit 93581ce

Please sign in to comment.