From 4d9fca6ed6ed6202164bec43b5efd8c96fc4049b Mon Sep 17 00:00:00 2001 From: Jerry <16351105+jerryc127@users.noreply.github.com> Date: Thu, 18 Jun 2020 20:08:58 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=BE=A9=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E9=A0=81=E9=9D=A2=E9=83=A8=E5=88=86=E5=85=83=E7=B4=A0=E5=85=A7?= =?UTF-8?q?=E9=83=A8=E6=96=87=E5=AD=97=E6=BA=A2=E5=87=BA=E7=9A=84=E9=8C=AF?= =?UTF-8?q?=E8=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_layout/post.styl | 3 +++ source/js/utils.js | 10 +--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/source/css/_layout/post.styl b/source/css/_layout/post.styl index cf0366a..2b3ab7c 100644 --- a/source/css/_layout/post.styl +++ b/source/css/_layout/post.styl @@ -266,6 +266,9 @@ img text-decoration: none #article-container + word-wrap: break-word + overflow-wrap: break-word + a color: $theme-link-color diff --git a/source/js/utils.js b/source/js/utils.js index 86dea92..0fb7a88 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -117,7 +117,7 @@ function snackbarShow (text, showAction, duration) { }) } -var Cookies = { +const Cookies = { get: function (name) { const value = `; ${document.cookie}` const parts = value.split(`; ${name}=`) @@ -143,11 +143,3 @@ if (GLOBAL_CONFIG.islazyload) { threshold: 0 } } - -window.debounce = debounce - -window.throttle = throttle - -window.isMobile = isMobile - -window.loadScript = loadScript