diff --git a/omega-web/src/popup/index.html b/omega-web/src/popup/index.html
index 9182af8..b0826d3 100644
--- a/omega-web/src/popup/index.html
+++ b/omega-web/src/popup/index.html
@@ -44,7 +44,7 @@
-
+
diff --git a/omega-web/src/popup/js/index.js b/omega-web/src/popup/js/index.js
index acc335b..4ec1154 100644
--- a/omega-web/src/popup/js/index.js
+++ b/omega-web/src/popup/js/index.js
@@ -16,10 +16,14 @@
window.close();
}
- function showOptions() {
- $script.ready('om-target', function() {
- OmegaTargetPopup.openOptions(null, closePopup);
- });
+ function showOptions(e) {
+ if (typeof OmegaTargetPopup !== 'undefined') {
+ try {
+ OmegaTargetPopup.openOptions(null, closePopup);
+ e.preventDefault();
+ } catch (_) {
+ }
+ }
}
function applyProfile(profileName) {