fix the linting errors (#1451)

pull/1452/head
Robert Ferree 2 years ago committed by GitHub
parent d94dab55d5
commit 512174ee93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save