Skip to content

Commit

Permalink
Merge pull request #328 from infinum/feature/fe-libs-tailwind
Browse files Browse the repository at this point in the history
FE libs Tailwind - part 3.5
  • Loading branch information
goranalkovic-infinum authored Jul 4, 2024
2 parents 76316d2 + b39686d commit 07d4b97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions website/src/pages/playground.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState, useEffect } from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Layout from '@theme/Layout';
Expand All @@ -7,7 +7,11 @@ export default function Playground() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;

const supportsServiceWorkers = 'serviceWorker' in navigator;
const [supportsServiceWorkers, setSupportsServiceWorkers] = useState(false);

useEffect(() => {
setSupportsServiceWorkers('serviceWorker' in navigator);
}, []);

const themeZipUrl =
'https://raw.githubusercontent.com/infinum/eightshift-docs/main/playground-files/es-wp-playground.zip';
Expand Down

0 comments on commit 07d4b97

Please sign in to comment.