Skip to content

Commit

Permalink
Attempt to not have inline script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 7, 2023
1 parent 9eb6310 commit c115974
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,18 @@ export const Home = () => {
navigate(`/home/${name}`);
}

const playOwl = () => {
new Audio(owl).play()
}

if (loading) {
return <Loader/>
}
return (
<div className="home">
<div className="mod-home-container">
<UnitHeader obj={({name: I18n.t("home.access"), svg: Logo})}
svgClick={() => new Audio(owl).play()}>
svgClick={() => playOwl()}>
<p>{I18n.t("header.subTitle")}</p>
</UnitHeader>
<Tabs activeTab={currentTab}
Expand Down

0 comments on commit c115974

Please sign in to comment.