diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/NetworkPageExporter.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/NetworkPageExporter.java index 2135ed547..7ab9affe5 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/NetworkPageExporter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/NetworkPageExporter.java @@ -215,7 +215,7 @@ public class NetworkPageExporter extends FileExporter { () -> files.getResourceFromJar("web/" + resourceName).asWebResource()); Path to = toDirectory.resolve(resourceName); - if (resourceName.endsWith(".css")) { + if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) { export(to, theme.replaceThemeColors(resource.asString())); } else if ("js/network-values.js".equalsIgnoreCase(resourceName) || "js/sessionAccordion.js".equalsIgnoreCase(resourceName)) { String relativePlayerLink = toRelativePathFromRoot("player"); diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java index 12b2051e0..b78397995 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayerPageExporter.java @@ -191,7 +191,7 @@ public class PlayerPageExporter extends FileExporter { () -> files.getResourceFromJar("web/" + resourceName).asWebResource()); Path to = toDirectory.resolve(resourceName); - if (resourceName.endsWith(".css")) { + if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) { export(to, theme.replaceThemeColors(resource.asString())); } else if (Resource.isTextResource(resourceName)) { export(to, resource.asString()); diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayersPageExporter.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayersPageExporter.java index 49ecc1fb2..af47eb6b3 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayersPageExporter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/PlayersPageExporter.java @@ -164,7 +164,7 @@ public class PlayersPageExporter extends FileExporter { () -> files.getResourceFromJar("web/" + resourceName).asWebResource()); Path to = toDirectory.resolve(resourceName); - if (resourceName.endsWith(".css")) { + if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) { export(to, theme.replaceThemeColors(resource.asString())); } else if (Resource.isTextResource(resourceName)) { export(to, resource.asString()); diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/ServerPageExporter.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/ServerPageExporter.java index 91fd4262d..d9cf723f0 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/ServerPageExporter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/export/ServerPageExporter.java @@ -234,7 +234,7 @@ public class ServerPageExporter extends FileExporter { () -> files.getResourceFromJar("web/" + resourceName).asWebResource()); Path to = toDirectory.resolve(resourceName); - if (resourceName.endsWith(".css")) { + if (resourceName.endsWith(".css") || resourceName.endsWith("color-selector.js")) { export(to, theme.replaceThemeColors(resource.asString())); } else if (Resource.isTextResource(resourceName)) { export(to, resource.asString());