Remove unused variables
This commit is contained in:
parent
417e3b5de3
commit
8cfb37351d
|
@ -26,7 +26,7 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(data =>
|
|||
chrome.webNavigation.onReferenceFragmentUpdated.addListener(data =>
|
||||
webNavigationListener('styleReplaceAll', data));
|
||||
|
||||
chrome.tabs.onAttached.addListener((tabId, data) => {
|
||||
chrome.tabs.onAttached.addListener(tabId => {
|
||||
// When an edit page gets attached or detached, remember its state
|
||||
// so we can do the same to the next one to open.
|
||||
chrome.tabs.get(tabId, tab => {
|
||||
|
|
|
@ -831,8 +831,8 @@ function setupGlobalSearch() {
|
|||
return;
|
||||
}
|
||||
// hide the first two dialogs (replace, replaceWith)
|
||||
cm.openDialog = (tmpl, callback, opt) => {
|
||||
cm.openDialog = (tmpl, callback, opt) => {
|
||||
cm.openDialog = (tmpl, callback) => {
|
||||
cm.openDialog = (tmpl, callback) => {
|
||||
cm.openDialog = originalOpenDialog;
|
||||
if (all) {
|
||||
callback(replacement);
|
||||
|
|
|
@ -195,7 +195,7 @@ function importFromString(jsonString) {
|
|||
contents: report.length ? report : t('importReportUnchanged'),
|
||||
buttons: [t('confirmOK'), numChanged && t('undo')],
|
||||
onshow: bindClick,
|
||||
}).then(({button, enter, esc}) => {
|
||||
}).then(({button}) => {
|
||||
if (button === 1) {
|
||||
undo();
|
||||
}
|
||||
|
@ -241,7 +241,7 @@ function importFromString(jsonString) {
|
|||
}
|
||||
}
|
||||
|
||||
function bindClick(box) {
|
||||
function bindClick() {
|
||||
const highlightElement = event => {
|
||||
const styleElement = $('#style-' + event.target.dataset.id);
|
||||
if (styleElement) {
|
||||
|
@ -367,7 +367,7 @@ Object.assign(document.body, {
|
|||
this.classList.remove('fadeout');
|
||||
}
|
||||
},
|
||||
ondragend(event) {
|
||||
ondragend() {
|
||||
animateElement(this, {className: 'fadeout', removeExtraClasses: ['dropzone']}).then(() => {
|
||||
this.style.animationDuration = '';
|
||||
});
|
||||
|
|
|
@ -360,7 +360,7 @@ Object.assign(handleEvent, {
|
|||
className: 'danger center',
|
||||
buttons: [t('confirmDelete'), t('confirmCancel')],
|
||||
})
|
||||
.then(({button, enter, esc}) => {
|
||||
.then(({button, enter}) => {
|
||||
if (button === 0 || enter) {
|
||||
deleteStyleSafe({id});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user