Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hosted current backend, Unity CORS Proxy
  • Loading branch information
stocc committed Aug 16, 2022
commit 94979ab3b599071f69f76d30d158bc34144d0687
8 changes: 5 additions & 3 deletions userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ Massive thank you to the following people:
// 0 best, 4 worst
const resolutionSetting = 2;
const headingCalibration = 40;
const BASE_URL = "https://lookaround-alpha.herokuapp.com/"
// docker run --publish 8080:8080 testcab/cors-anywhere
//const CORS_PROXY = "http://localhost:8080/"

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

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

Expand All @@ -40,7 +44,6 @@ async function blobToBase64(blob) {
});
}

const BASE_URL = "http://127.0.0.1:5001/"

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

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

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