This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix: support double click to top for all pages
- Loading branch information
Showing
7 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import { onlineStorage } from 'utils/storage'; | ||
import extensionAutoReload from './extensionAutoReload'; | ||
import doubleClickBackToTop from './doubleClickBackToTop'; | ||
import './style.scss'; | ||
|
||
// 存储 cookie | ||
onlineStorage.set({ cookies: document.cookie }); | ||
|
||
// SSE client | ||
process.env.NODE_ENV === 'development' && extensionAutoReload(); | ||
|
||
onlineStorage.get({ doubleClickBackToTop: false }).then(({ doubleClickBackToTop: doubleClickBackToTopSetting }) => { | ||
doubleClickBackToTopSetting && doubleClickBackToTop(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import blockPosts from './blockPosts'; | ||
import doubleClickBackToTop from './doubleClickBackToTop'; | ||
import './style.scss'; | ||
|
||
doubleClickBackToTop(); | ||
blockPosts(); |