Fix segment failed to fetch warning appearing for 404

This commit is contained in:
Ajay 2022-10-30 13:23:02 -04:00
parent d68c3659be
commit 8f19d3e83c

View file

@ -1926,7 +1926,7 @@ function startOrEndTimingNewSegment() {
importExistingChapters(false); importExistingChapters(false);
if (lastResponseStatus !== 200 && !shownSegmentFailedToFetchWarning) { if (lastResponseStatus !== 200 && lastResponseStatus !== 404 && !shownSegmentFailedToFetchWarning) {
alert(chrome.i18n.getMessage("segmentFetchFailureWarning")); alert(chrome.i18n.getMessage("segmentFetchFailureWarning"));
shownSegmentFailedToFetchWarning = true; shownSegmentFailedToFetchWarning = true;