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