Skip to content

Commit

Permalink
worked around SharedArrayBuffer cross-origin isolation warning in app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanibus committed Mar 27, 2021
1 parent 8266792 commit 5c197fd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .next/server/pages-manifest.json
Expand Up @@ -2,7 +2,5 @@
"/_app": "pages/_app.js",
"/_error": "pages/_error.js",
"/_document": "pages/_document.js",
"/": "pages/index.js",
"/api/pens/[id]": "pages/api/pens/[id].js",
"/api/users/[id]": "pages/api/users/[id].js"
"/": "pages/index.js"
}
10 changes: 8 additions & 2 deletions .next/server/pages/_app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions .next/static/chunks/pages/_app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .next/static/chunks/webpack.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pages/_app.js
Expand Up @@ -7,6 +7,8 @@ function MyApp({ Component, pageProps }) {
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32_fingerprint.png"/>
{/* https://github.com/facebook/react/issues/20829 */}
<script> if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer </script>
</Head>
<Component {...pageProps} />
</>
Expand Down
9 changes: 4 additions & 5 deletions pages/index.js
Expand Up @@ -381,10 +381,10 @@ const Index = () => {
}


const HandleProjectNameChange = (e) => { // Stefano: controlled States = this is also still unfinished business
const HandleProjectNameChange = e => { // Stefano: controlled States = this is also still unfinished business
setProjectName(e.target.value)
}
const HandleLongURL_Change = (e) => { // console.log('HandleLongURL_Change: ' , e.target.value ) ;
const HandleLongURL_Change = e => { // console.log('HandleLongURL_Change: ' , e.target.value ) ;
setLongurlValue(e.target.value)
}

Expand Down Expand Up @@ -429,7 +429,7 @@ const Index = () => {
<br/>
<input value={longurlValue} className={` longURLInput form-control form-input `}
style={{ display: "none" }} placeholder="enter any valid Internet-Website-Adress here (or look at examples)"
onChange={(e) => { HandleLongURL_Change(e); }} >
onChange={HandleLongURL_Change} >
</input>
<span className={` newProjectButtons `} style={{ display: "none" }}>

Expand All @@ -452,8 +452,7 @@ const Index = () => {
style={{ visibility: "hidden" }}
value={projectName}
placeholder="provide Project Name"
onChange={(e) => {
HandleProjectNameChange(e)}}
onChange={ HandleProjectNameChange }
>
</input>
<button
Expand Down

0 comments on commit 5c197fd

Please sign in to comment.