|
|
@@ -79,11 +79,6 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
setTitle: { title: BUTTON_DEFAULT_TOOLTIP_MESSAGE },
|
|
|
setIcon: { path: DEFAULT_ICON_PATH }
|
|
|
},
|
|
|
- upload: {
|
|
|
- setBadgeBackgroundColor: { color: DEFAULT_COLOR },
|
|
|
- setBadgeText: { text: BUTTON_DEFAULT_BADGE_MESSAGE },
|
|
|
- setTitle: { title: BUTTON_DEFAULT_BADGE_MESSAGE },
|
|
|
- },
|
|
|
error: {
|
|
|
setBadgeBackgroundColor: { color: ERROR_COLOR },
|
|
|
setBadgeText: { text: BUTTON_ERROR_BADGE_MESSAGE },
|
|
|
@@ -134,8 +129,7 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
onMessage,
|
|
|
onStart,
|
|
|
onUploadProgress,
|
|
|
- onForbiddenDomain,
|
|
|
- onUpload,
|
|
|
+ onForbiddenDomain,
|
|
|
onError,
|
|
|
onEdit,
|
|
|
onEnd,
|
|
|
@@ -181,10 +175,6 @@ singlefile.extension.ui.bg.button = (() => {
|
|
|
refresh(tabId, state);
|
|
|
}
|
|
|
|
|
|
- function onUpload(tabId) {
|
|
|
- refresh(tabId, getButtonState("upload"));
|
|
|
- }
|
|
|
-
|
|
|
function onError(tabId) {
|
|
|
refresh(tabId, getButtonState("error"));
|
|
|
}
|