Skip to content

Commit

Permalink
Reworked maintanance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Nov 19, 2023
1 parent 2bc99d7 commit 17d4c0d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "BetterFloat",
"author": "Rums",
"version": "1.13.1",
"version_name": "1.13.1",
"version": "1.13.2",
"version_name": "1.13.2",
"description": "Enhance your experience on CSFloat.com, Skinport.com & Skinbid.com!",
"manifest_version": 3,
"host_permissions": ["*://prices.csgotrader.app/*", "*://*.csfloat.com/*", "*://*.skinport.com/*", "*://*.skinbid.com/*"],
Expand Down
2 changes: 1 addition & 1 deletion manifest_firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Rums",
"url": "https://github.com/GODrums"
},
"version": "1.13.1",
"version": "1.13.2",
"description": "Enhance your experience on CSFloat.com, Skinport.com & Skinbid.com!",
"manifest_version": 3,
"host_permissions": ["*://prices.csgotrader.app/*", "*://*.csfloat.com/*", "*://*.skinport.com/*", "*://*.skinbid.com/*"],
Expand Down
2 changes: 1 addition & 1 deletion src/@typings/ExtensionTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export namespace Extension {
};

export type ApiStatusResponse = {
site: [string];
sites: [string];
message: string;
statusCode: number;
}
Expand Down
2 changes: 1 addition & 1 deletion src/csfloat/content_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function init() {
activateHandler();

const apiStatus = await isApiStatusOK();
if (apiStatus.statusCode != 200 && apiStatus.site.includes('csfloat')) {
if (apiStatus.statusCode != 200 && apiStatus.sites.includes('csfloat')) {
console.error('[BetterFloat] API status is not OK:', apiStatus);
const bannerPlaceholder = document.querySelector('MAT-TOOLBAR')?.parentElement?.childNodes[2];
if (bannerPlaceholder) {
Expand Down

0 comments on commit 17d4c0d

Please sign in to comment.