Skip to content

Commit 7d09808

Browse files
committed
fix(alert-on-update): parse index.html as text rather than JSON
1 parent f49ac7c commit 7d09808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alert-on-update.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function checkForUpdate(localCommit: string) {
4040
method: 'GET',
4141
headers: { Pragma: 'no-cache' },
4242
});
43-
const data = await res.json();
43+
const data = await res.text();
4444

4545
if (data) {
4646
const remoteDocument = new DOMParser().parseFromString(

0 commit comments

Comments
 (0)