fix the linting errors (#1451)

This commit is contained in:
Robert Ferree 2022-06-21 00:01:42 -06:00 committed by GitHub
parent d94dab55d5
commit 512174ee93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 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";
}