mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
friendly unfriend message
This commit is contained in:
@@ -25,7 +25,7 @@ const t = i18n.global.t;
|
||||
/**
|
||||
* @template T
|
||||
* @param {string} endpoint
|
||||
* @param {RequestInit & { params?: any }} [options]
|
||||
* @param {RequestInit & { params?: any } & {customMsg?: string}} [options]
|
||||
* @returns {Promise<T>}
|
||||
*/
|
||||
export function request(endpoint, options) {
|
||||
@@ -159,7 +159,9 @@ export function request(endpoint, options) {
|
||||
if (text) {
|
||||
new Noty({
|
||||
type: 'success',
|
||||
text: escapeTag(text)
|
||||
text: options.customMsg
|
||||
? options.customMsg
|
||||
: escapeTag(text)
|
||||
}).show();
|
||||
}
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user