mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58: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 class="om-divider"></li>
|
||||
<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 id="js-option-label"></span>
|
||||
</a>
|
||||
|
@ -16,10 +16,14 @@
|
||||
window.close();
|
||||
}
|
||||
|
||||
function showOptions() {
|
||||
$script.ready('om-target', function() {
|
||||
function showOptions(e) {
|
||||
if (typeof OmegaTargetPopup !== 'undefined') {
|
||||
try {
|
||||
OmegaTargetPopup.openOptions(null, closePopup);
|
||||
});
|
||||
e.preventDefault();
|
||||
} catch (_) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyProfile(profileName) {
|
||||
|
Loading…
Reference in New Issue
Block a user