Skip to content

Commit

Permalink
Update Image.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jilt authored Nov 30, 2023
1 parent 842d463 commit d590166
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ import { Route, useParams, Routes } from "react-router-dom";
export default function Image(props) {

const [mediaResult, setMediaResult] = useState("");

useEffect(() => {
loadNewMedia();
}, []);

const LoadNewMedia = () => {
const loadNewMedia = () => {
let cond = prop.media;
let changing = cond.includes("cloudflare");
if(changing){
Expand Down

0 comments on commit d590166

Please sign in to comment.