mirror of
https://github.com/logos-messaging/logos-messaging-frontend.git
synced 2026-01-02 13:53:13 +00:00
fix cors again, print better date
This commit is contained in:
parent
b9814780ec
commit
65756f0663
@ -2,7 +2,6 @@ import React from "react";
|
||||
import { Block } from "@/components/Block";
|
||||
import { Subtitle } from "@/components/Subtitle";
|
||||
import { Button } from "@/components/Button";
|
||||
import { Status } from "@/components/Status";
|
||||
import { MessageContent, useWaku } from "@/hooks";
|
||||
import { CONTENT_TOPIC } from "@/constants";
|
||||
|
||||
@ -107,7 +106,7 @@ function renderMessage(content: MessageContent) {
|
||||
<p>
|
||||
<span className="text-lg">{content.nick}</span>
|
||||
<span className="text-sm font-bold">
|
||||
({(new Date(content.timestamp)).toString()})
|
||||
({(new Date(content.timestamp)).toDateString()})
|
||||
</span>
|
||||
:
|
||||
</p>
|
||||
|
||||
@ -2,6 +2,7 @@ export const http = {
|
||||
post(url: string, body: any) {
|
||||
return fetch(new URL(url), {
|
||||
method: "POST",
|
||||
mode: "no-cors",
|
||||
referrerPolicy: "no-referrer",
|
||||
headers: {
|
||||
'Content-Type': 'text/plain',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user