Skip to content

Commit 94979ab

Browse files
committed
Hosted current backend, Unity CORS Proxy
1 parent 44d1d5c commit 94979ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

userscript.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ Massive thank you to the following people:
2828
// 0 best, 4 worst
2929
const resolutionSetting = 2;
3030
const headingCalibration = 40;
31+
const BASE_URL = "https://lookaround-alpha.herokuapp.com/"
32+
// docker run --publish 8080:8080 testcab/cors-anywhere
33+
//const CORS_PROXY = "http://localhost:8080/"
3134

35+
const CORS_PROXY = "https://nameless-bastion-28139.herokuapp.com/"
3236

3337
const extensionFactor = 2; // TODO Play around with this value for best results with image stretching
3438

@@ -40,7 +44,6 @@ async function blobToBase64(blob) {
4044
});
4145
}
4246

43-
const BASE_URL = "http://127.0.0.1:5001/"
4447

4548
const MENU_HTML = `
4649
<div class="start-standard-game_settings__x94PU">
@@ -272,8 +275,7 @@ async function loadTileForPano(panoFullId, x) {
272275
//var panoURL = "https://cors-anywhere.herokuapp.com/"+parsed.url;
273276

274277
// CORS Proxy running locally
275-
// docker run --publish 8080:8080 testcab/cors-anywhere
276-
var panoURL = "http://localhost:8080/"+parsed.url;
278+
var panoURL = CORS_PROXY+parsed.url;
277279
//var panoURL = parsed.url;
278280

279281
console.log("Requesting tile " + [x, parsed.url, panoURL])

0 commit comments

Comments
 (0)