diff --git a/PWA/package.json b/PWA/package.json index 7db3b67..0853fdf 100644 --- a/PWA/package.json +++ b/PWA/package.json @@ -1,6 +1,6 @@ { "name": "ReliefBox", - "version": "0.15.3", + "version": "0.15.4", "description": "A tool for managing the distribution of relief items during humanitarian emergencies.", "main": "index.js", "scripts": { diff --git a/PWA/public/Services/CacheFilePathService.js b/PWA/public/Services/CacheFilePathService.js index 9d10c62..687fe5e 100644 --- a/PWA/public/Services/CacheFilePathService.js +++ b/PWA/public/Services/CacheFilePathService.js @@ -33,7 +33,7 @@ import { DownloadSpreadsheetTemplateHandler } from "./FetchEventHandlers/Downloa import { DeleteDistributionsConfirmHandler } from "./FetchEventHandlers/DeleteDistributionsConfirmHandler.js"; import { DistributionResponseProvider } from "./DistributionResponseProvider.js"; import { DistributionsHandler } from "./FetchEventHandlers/DistributionsHandler.js"; -import { DocumentationPageHandler } from "./FetchEventHandlers/DocumentationPageHandler.js"; +import { DocumentationHandler } from "./FetchEventHandlers/DocumentationHandler.js"; // Provides all the files that have to be cached for offline use export class CacheFilePathService { pathsOfFilesToCache() { @@ -142,7 +142,7 @@ export class CacheFilePathService { DownloadSpreadsheetTemplateHandler.name, DeleteDistributionsConfirmHandler.name, DistributionsHandler.name, - DocumentationPageHandler.name + DocumentationHandler.name ]); } interfacesPaths() { diff --git a/PWA/public/Services/FetchEventHandlers/DocumentationPagehandler.js b/PWA/public/Services/FetchEventHandlers/DocumentationHandler.js similarity index 89% rename from PWA/public/Services/FetchEventHandlers/DocumentationPagehandler.js rename to PWA/public/Services/FetchEventHandlers/DocumentationHandler.js index ec93720..97ae146 100644 --- a/PWA/public/Services/FetchEventHandlers/DocumentationPagehandler.js +++ b/PWA/public/Services/FetchEventHandlers/DocumentationHandler.js @@ -1,6 +1,6 @@ import { RouteEvents } from "../../RouteEvents.js"; import { ResponseTools } from "../ResponseTools.js"; -export class DocumentationPageHandler { +export class DocumentationHandler { canHandleEvent(event) { return event.request.url.includes(RouteEvents.documentation); } diff --git a/PWA/public/Services/FetchEventHandlers/FetchEventHandlers.js b/PWA/public/Services/FetchEventHandlers/FetchEventHandlers.js index 62e494b..2528302 100644 --- a/PWA/public/Services/FetchEventHandlers/FetchEventHandlers.js +++ b/PWA/public/Services/FetchEventHandlers/FetchEventHandlers.js @@ -19,7 +19,7 @@ import { DownloadDataHandler } from "./DownloadDataHandler.js"; import { DownloadSpreadsheetTemplateHandler } from "./DownloadSpreadsheetTemplateHandler.js"; import { DeleteDistributionsConfirmHandler } from "./DeleteDistributionsConfirmHandler.js"; import { DistributionsHandler } from "./DistributionsHandler.js"; -import { DocumentationPageHandler } from "./DocumentationPageHandler.js"; +import { DocumentationHandler } from "./DocumentationHandler.js"; export class FetchEventHandlers extends ActiveSessionContainer { constructor() { super(...arguments); @@ -44,7 +44,7 @@ export class FetchEventHandlers extends ActiveSessionContainer { new DownloadSpreadsheetTemplateHandler(), new DeleteDistributionsConfirmHandler(), new DistributionsHandler(), - new DocumentationPageHandler() + new DocumentationHandler() ]; } handlersForEvent(event) { diff --git a/PWA/public/index.html b/PWA/public/index.html index 3d0a637..5c6500c 100644 --- a/PWA/public/index.html +++ b/PWA/public/index.html @@ -39,7 +39,7 @@ - +