1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-31 14:04:50 +01:00
2018-01-17 00:59:15 -08:00

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
}