Skip to content

Commit

Permalink
Fix Prism global config
Browse files Browse the repository at this point in the history
Related GH-37.
Related GH-37.
Closes GH-52.
Closes GH-53.
  • Loading branch information
thompsongl committed Sep 22, 2021
1 parent e399dff commit 767a5e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ const ctx =

const restore = capture()

/* c8 ignore next 5 */
ctx.Prism = ctx.Prism || {}
// @ts-expect-error Types are incorrect.
ctx.Prism = {manual: true, disableWorkerMessageHandler: true}
ctx.Prism.manual = true
// @ts-expect-error Types are incorrect.
ctx.Prism.disableWorkerMessageHandler = true

/* eslint-disable import/first */

Expand Down

0 comments on commit 767a5e7

Please sign in to comment.