From 5a6acbd5f0636e35d2fa7862a63c7d2c4c4bce5e Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Sun, 29 Nov 2020 14:26:39 +0800 Subject: [PATCH] fix type error of slim DOM options --- src/record/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/record/index.ts b/src/record/index.ts index 642170a2..6214506b 100644 --- a/src/record/index.ts +++ b/src/record/index.ts @@ -95,9 +95,7 @@ function record( headMetaAuthorship: _slimDOMOptions === 'all', headMetaDescKeywords: _slimDOMOptions === 'all', } - : _slimDOMOptions === false - ? {} - : _slimDOMOptions; + : {}; polyfill();