Skip to content

Commit

Permalink
Исправил баг с экспортом заметки в соц сети
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed May 19, 2024
1 parent 57ed72f commit 509aac9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions public/src/components/SharePanel/SharePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {NotesActions} from "../../modules/stores/NotesStore";
import {parseNoteTitle} from "../../modules/utils";
import {AppDispatcher} from "../../modules/dispatcher";
import {AppToasts} from "../../modules/toasts";
import {baseUrl} from "../../utils/consts";

export class SharePanel extends ScReact.Component<any, any> {

Expand Down Expand Up @@ -44,7 +43,7 @@ export class SharePanel extends ScReact.Component<any, any> {
AppToasts.info("Ссылка на заметку скопирована")
}

getNoteURL = () => baseUrl + "/notes/" + this.props.note?.id
getNoteURL = () => "https://you-note.ru/notes/" + this.props.note?.id

render() {
return (
Expand Down
3 changes: 0 additions & 3 deletions public/src/modules/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,6 @@ class NoteRequests {

const response = await fetch(baseUrl + "/note/" + note_id + "/make_zip", options);

console.log(response.headers['x-csrf-token'])
console.log(response)

if (response.status == 200) {
const blob = await response.blob()
return {
Expand Down

0 comments on commit 509aac9

Please sign in to comment.