Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

fix: use non-strict equivalence for options.preload #1134

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = configure(({ ky }) => {
if (options.silent) searchParams.set('silent', options.silent)
if (options.trickle != null) searchParams.set('trickle', options.trickle)
if (options.wrapWithDirectory != null) searchParams.set('wrap-with-directory', options.wrapWithDirectory)
if (options.preload !== null) searchParams.set('preload', options.preload)
if (options.preload != null) searchParams.set('preload', options.preload)

const res = await ky.post('add', {
timeout: options.timeout,
Expand Down