multimodalart HF staff commited on
Commit
93f9cae
1 Parent(s): 493c49f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -1
index.html CHANGED
@@ -38,7 +38,7 @@
38
 
39
  function isS3Url(url) {
40
  // The condition to identify S3 URLs and other URLs to track
41
- return url.startsWith('https://s3.amazonaws.com/') ||
42
  url.includes('preupload/main') ||
43
  url.includes('commit/main');
44
  }
@@ -51,6 +51,8 @@
51
 
52
  // Replace the global fetch function
53
  fetch = (url, init) => {
 
 
54
  if (isS3Url(url) && init.method === 'PUT') {
55
  return new Promise((resolve, reject) => {
56
  const xhr = new XMLHttpRequest();
 
38
 
39
  function isS3Url(url) {
40
  // The condition to identify S3 URLs and other URLs to track
41
+ return url.startsWith('https://s3.us-east-1.amazonaws/') ||
42
  url.includes('preupload/main') ||
43
  url.includes('commit/main');
44
  }
 
51
 
52
  // Replace the global fetch function
53
  fetch = (url, init) => {
54
+ print(url)
55
+ print(init.method)
56
  if (isS3Url(url) && init.method === 'PUT') {
57
  return new Promise((resolve, reject) => {
58
  const xhr = new XMLHttpRequest();