editor-js / editor-js/image

How to suppress in-built notification messages?

Open
#150 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
285
Forks
307
PR merge metrics
No merged PRs in 30d

Description

This module uses in-built notification system (js-notifier), but I have my own, How can I change it to my notifications or supress messages from module?

I guess that I could be to suppress it via upload handlers but it isn't:
```
uploadByFile(file) {
try {
// eslint-disable-next-line no-undef
return globalThis.$nuxt.$axios
.post(
'[LINK TO HANDLER]',
file
)
.then((res) => {
return {
success: 1,
file: {
url: res.data.data.file.url,
},
}
})
.catch(() => {
// It won't disable in-built notifications
console.log('TEST ERR')
// I can call my own notifications here
})
} catch (e) {
// It won't disable in-built notifications too
console.log('TEST')
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.