diff options
author | 2022-03-18 11:36:42 +0100 | |
---|---|---|
committer | 2022-03-18 11:36:42 +0100 | |
commit | afb434cd033a085cf7b226b0d6f8d84f326813d6 (patch) | |
tree | 766cd46b22a1d38433bac61aecbc1db7b6473797 /source/features/extend-diff-expander.tsx | |
parent | a6dfe8444665bd639a14ab3094029486ea7efc03 (diff) | |
download | refined-github-afb434cd033a085cf7b226b0d6f8d84f326813d6.tar.gz refined-github-afb434cd033a085cf7b226b0d6f8d84f326813d6.tar.zst refined-github-afb434cd033a085cf7b226b0d6f8d84f326813d6.zip |
Meta: Correctly deinit all features (#5422)
Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/extend-diff-expander.tsx')
-rw-r--r-- | source/features/extend-diff-expander.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/extend-diff-expander.tsx b/source/features/extend-diff-expander.tsx index 23e1d6c1..db44bb17 100644 --- a/source/features/extend-diff-expander.tsx +++ b/source/features/extend-diff-expander.tsx @@ -12,8 +12,8 @@ function expandDiff(event: delegate.Event): void { } } -function init(): void { - delegate(document, '.diff-view .js-expandable-line', 'click', expandDiff); +function init(): Deinit { + return delegate(document, '.diff-view .js-expandable-line', 'click', expandDiff); } void features.add(import.meta.url, { |