Skip to content

Commit fdf7a61

Browse files
committed
Use watch package from JSR
1 parent c63ae20 commit fdf7a61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tasks": {
3-
"dev": "deno run -A lib/watch.ts blog components lib assets routes plugins -- deno run -A main.tsx --dev"
3+
"dev": "deno -A jsr:@effection-contrib/watch deno run -A main.tsx --dev"
44
},
55
"lint": {
66
"rules": {

plugins/umami.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const UmamiContext = createContext<Required<UmamiOptions>>("umami");
1313
export function* umamiPlugin(
1414
options: UmamiOptions,
1515
): Operation<RevolutionPlugin> {
16-
if (!options.websiteID) {
16+
if (options.enabled && !options.websiteID) {
1717
throw new Error(
1818
"UmamiPlugin: 'websiteId' is required but was not provided. Please pass it in as an option.",
1919
);

0 commit comments

Comments
 (0)