mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-19 06:39:57 +00:00
avoid an error that can be caused by intentionally breaking cobalt
no idea why you'd change user agent to chrome in firefox, then disable clipboard button, and change user agent back to firefox, but now cobalt page won't crash if you do that
This commit is contained in:
parent
89785bf4bd
commit
fbb2f2d200
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ function toggle(toggl) {
|
||||||
updateToggle(toggl, sGet(toggl))
|
updateToggle(toggl, sGet(toggl))
|
||||||
}
|
}
|
||||||
function loadSettings() {
|
function loadSettings() {
|
||||||
if (sGet("disableClipboardButton") == "true") eid("pasteFromClipboard").style.display = "none";
|
if (sGet("disableClipboardButton") == "true" && !isFirefox) eid("pasteFromClipboard").style.display = "none";
|
||||||
if (sGet("alwaysVisibleButton") == "true") {
|
if (sGet("alwaysVisibleButton") == "true") {
|
||||||
eid("alwaysVisibleButton").checked = true;
|
eid("alwaysVisibleButton").checked = true;
|
||||||
eid("download-button").value = '>>'
|
eid("download-button").value = '>>'
|
||||||
|
|
Loading…
Reference in a new issue