diff --git a/src/plugins/timeBarAllActivities/index.ts b/src/plugins/timeBarAllActivities/index.ts index 223f1828..ff8fd8b1 100644 --- a/src/plugins/timeBarAllActivities/index.ts +++ b/src/plugins/timeBarAllActivities/index.ts @@ -25,10 +25,10 @@ export default definePlugin({ authors: [Devs.obscurity], patches: [ { - find: "renderTimeBar=function", + find: "}renderTimeBar(", replacement: { - match: /renderTimeBar=function\((.{1,3})\){.{0,50}?var/, - replace: "renderTimeBar=function($1){var" + match: /renderTimeBar\((.{1,3})\){.{0,50}?let/, + replace: "renderTimeBar($1){let" } } ],