From 0fd614f732d31809477931fdc1b404326905623a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?=
 <hh_2013@foxmail.com>
Date: Thu, 31 May 2018 23:27:46 +0800
Subject: [PATCH] fix: comparing typeof expression

---
 website/scripts/sections.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/scripts/sections.js b/website/scripts/sections.js
index c109d2a68f..3d056a2362 100644
--- a/website/scripts/sections.js
+++ b/website/scripts/sections.js
@@ -73,7 +73,7 @@ function Section(parentSection, id, name) {
     this.toHTML = function(options) {
         var defaultOptions = {header: false, renderSubsections: true};
 
-        if (typeof options === undefined) {
+        if (typeof options === "undefined") {
             options = defaultOptions;
         } else {
             options = $.extend(defaultOptions, options);
-- 
GitLab