summaryrefslogtreecommitdiff
path: root/source/features/extend-diff-expander.tsx
diff options
context:
space:
mode:
authorGravatar Florent <cheap.glitch@gmail.com> 2022-03-18 11:36:42 +0100
committerGravatar GitHub <noreply@github.com> 2022-03-18 11:36:42 +0100
commitafb434cd033a085cf7b226b0d6f8d84f326813d6 (patch)
tree766cd46b22a1d38433bac61aecbc1db7b6473797 /source/features/extend-diff-expander.tsx
parenta6dfe8444665bd639a14ab3094029486ea7efc03 (diff)
downloadrefined-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.tsx4
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, {