mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 11:08:13 -05:00
Fall back to link if openOptions fails in popup.
This commit is contained in:
parent
db2d2e4d00
commit
e23db1771d
@ -44,7 +44,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="om-divider"></li>
|
<li class="om-divider"></li>
|
||||||
<li class="om-nav-item">
|
<li class="om-nav-item">
|
||||||
<a href="#" id="js-option" role="button">
|
<a href="../options.html" target="_blank" id="js-option" role="button">
|
||||||
<span class="glyphicon glyphicon-wrench"></span>
|
<span class="glyphicon glyphicon-wrench"></span>
|
||||||
<span id="js-option-label"></span>
|
<span id="js-option-label"></span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -16,10 +16,14 @@
|
|||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showOptions() {
|
function showOptions(e) {
|
||||||
$script.ready('om-target', function() {
|
if (typeof OmegaTargetPopup !== 'undefined') {
|
||||||
|
try {
|
||||||
OmegaTargetPopup.openOptions(null, closePopup);
|
OmegaTargetPopup.openOptions(null, closePopup);
|
||||||
});
|
e.preventDefault();
|
||||||
|
} catch (_) {
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyProfile(profileName) {
|
function applyProfile(profileName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user