1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Merge branch 'master' of github.com:tobspr/shapez.io

This commit is contained in:
tobspr
2022-06-21 11:50:06 +02:00
3 changed files with 64 additions and 63 deletions

View File

@@ -227,7 +227,7 @@ export class BackgroundResourcesLoader {
const options = {};
const headers = xhr.getAllResponseHeaders();
const contentType = headers.match(/^Content-Type\:\s*(.*?)$/im);
const contentType = headers.match(/^Content-Type:\s*(.*?)$/im);
if (contentType && contentType[1]) {
options.type = contentType[1].split(";")[0];
}

View File

@@ -235,6 +235,7 @@ export class MapView extends BaseMap {
let key = "regular";
// Disabled rn because it can be really annoying
// eslint-disable-next-line no-constant-condition
if (this.root.hud.parts.buildingPlacer.currentMetaBuilding.get() && false) {
key = "placing";
}