cleanup
This commit is contained in:
parent
5decec1226
commit
4aa7884a34
|
@ -19,7 +19,7 @@
|
|||
"curly": ["error", "multi-line", "consistent"],
|
||||
"dot-notation": 2,
|
||||
"yoda": 2,
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"linebreak-style": ["error", "windows"],
|
||||
"quote-props": ["error", "consistent-as-needed", {"keywords": true}],
|
||||
"object-curly-spacing": ["error", "never", { "objectsInObjects": false }]
|
||||
},
|
||||
|
|
20
js/main.js
20
js/main.js
|
@ -1270,7 +1270,7 @@ Utils.onRemoved = function(node, callback) {
|
|||
});
|
||||
|
||||
observer.observe(document.body, {subtree: true, childList: true});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
@ -1609,6 +1609,16 @@ BdApi.getInternalInstance = function(node) {
|
|||
return BDV2.getInternalInstance(node);
|
||||
};
|
||||
|
||||
// Gets data
|
||||
BdApi.loadData = function(pluginName, key) {
|
||||
return window.bdPluginStorage.get(pluginName, key);
|
||||
};
|
||||
|
||||
// Gets data
|
||||
BdApi.saveData = function(pluginName, key, data) {
|
||||
return window.bdPluginStorage.set(pluginName, key, data);
|
||||
};
|
||||
|
||||
|
||||
/* BetterDiscordApp DevMode JavaScript
|
||||
* Version: 1.0
|
||||
|
@ -1632,14 +1642,6 @@ BdApi.getInternalInstance = function(node) {
|
|||
|
||||
if (!selectorMode) return;
|
||||
$(document).on("contextmenu.bdDevmode", function(e) {
|
||||
// var parents = [];
|
||||
// $(e.toElement).parents().addBack().not('html').each(function() {
|
||||
// var entry = "";
|
||||
// if (this.classList && this.classList.length) {
|
||||
// entry += "." + Array.prototype.join.call(this.classList, '.');
|
||||
// parents.push(entry);
|
||||
// }
|
||||
// });
|
||||
self.lastSelector = self.getSelector(e.toElement);
|
||||
|
||||
function attach() {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue