From 202944247a272340c9c357092cdeb63794b87354 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Wed, 20 Dec 2023 13:19:18 +1100 Subject: [PATCH] code cleanup --- src/SEQTA.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/SEQTA.ts b/src/SEQTA.ts index 7ffeebaa..b89a20aa 100644 --- a/src/SEQTA.ts +++ b/src/SEQTA.ts @@ -862,17 +862,6 @@ function addExtensionSettings() { }; } -function saveNewOrder(sortable: any) { - var order = sortable.toArray(); - browser.storage.local.set({ menuorder: order }); -} - -function cloneAttributes(target: any, source: any) { - [...source.attributes].forEach((attr) => { - target.setAttribute(attr.nodeName, attr.nodeValue); - }); -} - export function OpenMenuOptions() { const result = browser.storage.local.get() function open (result: any) { @@ -1089,6 +1078,17 @@ export function OpenMenuOptions() { result.then(open, onError) } +function saveNewOrder(sortable: any) { + var order = sortable.toArray(); + browser.storage.local.set({ menuorder: order }); +} + +function cloneAttributes(target: any, source: any) { + [...source.attributes].forEach((attr) => { + target.setAttribute(attr.nodeName, attr.nodeValue); + }); +} + function ReplaceMenuSVG(element: HTMLElement, svg: string) { let item = element.firstChild as HTMLElement; item!.firstChild!.remove();