Skip to content

Commit

Permalink
also revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 4, 2024
1 parent 7151e71 commit c8db2d0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions public/components/EventContentPage/EventContentPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,6 @@ export class EventContentPage {
const response = await api.get(path, request);
const event = await response.json();
this._renderEvent(event);
document.querySelector("meta[property='og:title']").setAttribute("content", event.title);
document.querySelector("meta[property='og:description']").setAttribute("content", event.description);
document.querySelector("meta[property='og:image']").setAttribute("content", endpoint + '/' + event.image);
document.querySelector("meta[property='og:url']").setAttribute("content", `https://ваш-сайт.com/events/${event.id}`);

} catch (error) {
console.log(error);
Expand Down

0 comments on commit c8db2d0

Please sign in to comment.