soiz1 commited on
Commit
04fa2df
·
verified ·
1 Parent(s): 0427cbe

Update src/components/loader/tw-progress-monitor.js

Browse files
src/components/loader/tw-progress-monitor.js CHANGED
@@ -46,12 +46,11 @@ const setState = newState => {
46
  const fetchWithProgress = url => {
47
  setState(1);
48
 
49
- // CORSプロキシのURLを設定
50
  const proxyUrl = `https://public-soiz1-cors-proxy.hf.space/?url=` + encodeURIComponent(url); // ここで公開されているプロキシを使用
51
  //const proxyUrl = `https://cors-anywhere.herokuapp.com/` + encodeURIComponent(url);
52
  // const proxyUrl = `https://cors-proxy.htmldriven.com/?url=` + encodeURIComponent(url); // 別のプロキシURLを使いたい場合はこちらを使用
53
- // const proxyUrl = `https://api.allorigins.win/raw?url=` + encodeURIComponent(url); // 別のプロキシURLを使いたい場合はこちらを使用
54
-
55
  return new Promise((resolve, reject) => {
56
  const xhr = new XMLHttpRequest();
57
  xhr.responseType = 'blob';
@@ -84,6 +83,7 @@ window.fetch = (url, opts) => {
84
  return originalFetch(url, opts);
85
  };
86
 
 
87
  // Web Workerのメッセージ処理
88
  const handleWorkerMessage = e => {
89
  const data = e.data;
 
46
  const fetchWithProgress = url => {
47
  setState(1);
48
 
49
+ // 使用するCORSプロキシURL
50
  const proxyUrl = `https://public-soiz1-cors-proxy.hf.space/?url=` + encodeURIComponent(url); // ここで公開されているプロキシを使用
51
  //const proxyUrl = `https://cors-anywhere.herokuapp.com/` + encodeURIComponent(url);
52
  // const proxyUrl = `https://cors-proxy.htmldriven.com/?url=` + encodeURIComponent(url); // 別のプロキシURLを使いたい場合はこちらを使用
53
+ // const proxyUrl = `https://api.allorigins.win/raw?url=` + encodeURIComponent(url); // 別のプロキシURLを使いたい場合はこちらを使用
 
54
  return new Promise((resolve, reject) => {
55
  const xhr = new XMLHttpRequest();
56
  xhr.responseType = 'blob';
 
83
  return originalFetch(url, opts);
84
  };
85
 
86
+
87
  // Web Workerのメッセージ処理
88
  const handleWorkerMessage = e => {
89
  const data = e.data;