bring back reactions
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
export const b = {
|
||||
babycodePreviewEndpoint: '/api/babycode-preview/',
|
||||
init: 'babycodeEditorCharCountInit localizeTimestamps',
|
||||
}
|
||||
|
||||
const BABYCODE_PREVIEW_ENDPOINT = '/api/babycode-preview/';
|
||||
|
||||
const getThreadId = () => {
|
||||
const scheme = window.location.pathname.split("/");
|
||||
if (scheme[1] !== 'threads' || scheme[2] === 'new') {
|
||||
@@ -158,7 +159,7 @@ export async function babycodePreview(payload, _, el) {
|
||||
}),
|
||||
}
|
||||
|
||||
const f = await fetch(b.babycodePreviewEndpoint, options);
|
||||
const f = await fetch(BABYCODE_PREVIEW_ENDPOINT, options);
|
||||
try {
|
||||
if (!f.ok) {
|
||||
console.error(f);
|
||||
|
||||
Reference in New Issue
Block a user