1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-29 03:15:51 +02:00

Fix TDPF_createCustomStyle's remove function depending on jQuery

This commit is contained in:
chylex 2018-07-01 16:51:57 +02:00
parent e5521de34a
commit c91b635132

View File

@ -43,12 +43,10 @@
element.id = "plugin-"+pluginObject.$id+"-"+Math.random().toString(36).substring(2, 7); element.id = "plugin-"+pluginObject.$id+"-"+Math.random().toString(36).substring(2, 7);
document.head.appendChild(element); document.head.appendChild(element);
var obj = { return {
insert: (rule) => element.sheet.insertRule(rule, 0), insert: (rule) => element.sheet.insertRule(rule, 0),
remove: () => $(element).remove() remove: () => element.remove(),
element: element
}; };
obj.element = element;
return obj;
}; };
})($TDP); })($TDP);