Skip to content

Commit

Permalink
Fix hydration again
Browse files Browse the repository at this point in the history
  • Loading branch information
EccentricVamp committed Nov 19, 2022
1 parent 6ed5321 commit 35374e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getSheet } from "twind";
import { dom } from "twind";
import { FreshwindUserConfig, setup, STYLE_ELEMENT_ID } from "./shared.ts";

export default function hydrate(options: FreshwindUserConfig) {
const sheet = getSheet(true, false);
// @ts-ignore Remove this once Twind plays nice with islands
sheet.target = document.getElementById(STYLE_ELEMENT_ID) as HTMLStyleElement;
const sheet = dom(
document.getElementById(STYLE_ELEMENT_ID) as HTMLStyleElement,
);
setup(options, sheet);
}

0 comments on commit 35374e9

Please sign in to comment.