esoftplay 0.0.113-e → 0.0.113-f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/error.ts +9 -5
- package/package.json +1 -1
package/error.ts
CHANGED
|
@@ -78,12 +78,16 @@ export function getError() {
|
|
|
78
78
|
'error: \n' + _e.error,
|
|
79
79
|
].join('\n')
|
|
80
80
|
// config?.errorReport?.telegramIds?.forEach?.((id: string) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
if (msg.includes(`Invariant Violation: "main" has not been registered. This can happen if`)) {
|
|
82
|
+
// remove error that unsolved
|
|
83
|
+
} else {
|
|
84
|
+
let post = {
|
|
85
|
+
text: msg,
|
|
86
|
+
chat_id: "-1001212227631",
|
|
87
|
+
disable_web_page_preview: true
|
|
88
|
+
}
|
|
89
|
+
new LibCurl().custom('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
|
|
85
90
|
}
|
|
86
|
-
new LibCurl().custom('https://api.telegram.org/bot923808407:AAEFBlllQNKCEn8E66fwEzCj5vs9qGwVGT4/sendMessage', post)
|
|
87
91
|
// });
|
|
88
92
|
AsyncStorage.removeItem(config.domain + 'error')
|
|
89
93
|
}
|