mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-13 18:57:02 +01:00
13 lines
324 B
JavaScript
13 lines
324 B
JavaScript
import { mark as markyMark, stop as markyStop } from 'marky'
|
|
import noop from 'lodash/noop'
|
|
|
|
const enableMarks = typeof window !== 'undefined' &&
|
|
new URLSearchParams(location.search).get('marks') === 'true'
|
|
|
|
const mark = enableMarks ? markyMark : noop
|
|
const stop = enableMarks ? markyStop : noop
|
|
|
|
export {
|
|
mark,
|
|
stop
|
|
} |