mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 05:43:51 +02:00
apply no-throw-literal
This commit is contained in:
@@ -50,7 +50,6 @@ module.exports = {
|
||||
'no-plusplus': 0,
|
||||
'no-tabs': 0,
|
||||
'no-ternary': 0,
|
||||
'no-throw-literal': 0,
|
||||
'no-undefined': 0,
|
||||
'no-underscore-dangle': 0,
|
||||
'no-var': 0,
|
||||
|
||||
@@ -423,16 +423,14 @@ if (window.CefSharp) {
|
||||
if (extra !== undefined) {
|
||||
text.push(extra);
|
||||
}
|
||||
text = text.map((s) => escapeTag(s)).join('<br>');
|
||||
if (text.length) {
|
||||
new Noty({
|
||||
type: 'error',
|
||||
text: text.map((s) => escapeTag(s)).join('<br>')
|
||||
text
|
||||
}).show();
|
||||
}
|
||||
throw {
|
||||
'status_code': code,
|
||||
error
|
||||
};
|
||||
throw new Error(text);
|
||||
};
|
||||
|
||||
API.bulk = function (options) {
|
||||
|
||||
Reference in New Issue
Block a user