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/quick-repo-deletion.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/quick-repo-deletion.tsx')
-rw-r--r-- | source/features/quick-repo-deletion.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/quick-repo-deletion.tsx b/source/features/quick-repo-deletion.tsx index 89c75a34..130f3ec9 100644 --- a/source/features/quick-repo-deletion.tsx +++ b/source/features/quick-repo-deletion.tsx @@ -123,7 +123,7 @@ async function start(buttonContainer: HTMLDetailsElement): Promise<void> { } } -async function init(): Promise<void | false> { +async function init(): Promise<Deinit | false> { if ( // Only if the user can delete the repository !await elementReady('nav [data-content="Settings"]') @@ -149,7 +149,7 @@ async function init(): Promise<void | false> { </li>, ); - delegate(document, '.rgh-quick-repo-deletion[open]', 'toggle', handleToggle, true); + return delegate(document, '.rgh-quick-repo-deletion[open]', 'toggle', handleToggle, true); } void features.add(import.meta.url, { |