Skip to content

Commit 8b744af

Browse files
Don't use fallback server on POST /api/skipSegments
As most mirrors don't implement the full API, this would fail on any servers that don't. POSTing to a server other than the main also leaks secrets to 3rd party servers.
1 parent 187263b commit 8b744af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2244,7 +2244,7 @@ async function sendSubmitMessage() {
22442244
}
22452245
}
22462246

2247-
const response = await utils.asyncRequestToServer("POST", "/api/skipSegments", fallbackServer, {
2247+
const response = await utils.asyncRequestToServer("POST", "/api/skipSegments", false, {
22482248
videoID: sponsorVideoID,
22492249
userID: Config.config.userID,
22502250
segments: sponsorTimesSubmitting,

0 commit comments

Comments
 (0)