simonu5 commited on
Commit
0827aea
·
verified ·
1 Parent(s): c3cc1eb

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -5
index.html CHANGED
@@ -746,7 +746,7 @@
746
  'toast.deleted': 'Deleted',
747
  'toast.cleared': 'All data cleared',
748
  'toast.paramsSaved': 'Parameters applied',
749
- 'toast.timeout': 'Request timed out',
750
  'toast.error': 'Error occurred',
751
  }
752
  };
@@ -1335,10 +1335,9 @@
1335
  }
1336
  }
1337
  } catch (err) {
1338
- if (err.name === 'AbortError') {
1339
- updateLastMessage(fullContent + '\n\n> **Request timed out**');
1340
- showToast(t('toast.timeout'), 'error');
1341
- } else {
1342
  updateLastMessage(fullContent + `\n\n> **Error:** ${escapeHtml(err.message)}`);
1343
  showToast(err.message, 'error');
1344
  }
 
746
  'toast.deleted': 'Deleted',
747
  'toast.cleared': 'All data cleared',
748
  'toast.paramsSaved': 'Parameters applied',
749
+ 'toast.timeout': '請求超時',
750
  'toast.error': 'Error occurred',
751
  }
752
  };
 
1335
  }
1336
  }
1337
  } catch (err) {
1338
+ if (err.name === 'AbortError') { updateLastMessage(fullContent + '
1339
+
1340
+ > **Request aborted/canceled**'); showToast('請求已取消', 'info'); } else {
 
1341
  updateLastMessage(fullContent + `\n\n> **Error:** ${escapeHtml(err.message)}`);
1342
  showToast(err.message, 'error');
1343
  }