mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
Remove unused code for editmenu
This commit is contained in:
@@ -1235,28 +1235,11 @@ async function AddBetterSEQTAElements(toggle: any) {
|
||||
var NewsButton = stringToHTML(NewsButtonStr);
|
||||
List!.appendChild(NewsButton.firstChild!);
|
||||
|
||||
editmenu = document.createElement('div');
|
||||
editmenu.classList.add('editmenu');
|
||||
|
||||
let svg = stringToHTML(
|
||||
'<svg style="width:24px;height:24px;padding:5px;" id="editmenu" viewBox="0 0 24 24"><path fill="currentColor" d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" /></svg>',
|
||||
);
|
||||
editmenu.append(svg.firstChild!);
|
||||
|
||||
menu!.appendChild(editmenu);
|
||||
|
||||
let a = document.createElement('div');
|
||||
a.classList.add('icon-cover');
|
||||
a.id = 'icon-cover';
|
||||
menu!.appendChild(a);
|
||||
|
||||
var editmenu = document.querySelector('#editmenu');
|
||||
editmenu!.addEventListener('click', function () {
|
||||
if (!MenuOptionsOpen) {
|
||||
OpenMenuOptions();
|
||||
}
|
||||
});
|
||||
|
||||
var menuCover = document.querySelector('#icon-cover');
|
||||
menuCover!.addEventListener('click', function () {
|
||||
location.href = '../#?page=/home';
|
||||
|
||||
Reference in New Issue
Block a user