Adding search engine note for Opera users
parent
7c091198ca
commit
dd711f4a9a
|
@ -278,6 +278,11 @@
|
|||
turning the extension off and on via your browser's extension settings (chrome://extensions/),
|
||||
and/or reinstalling the extension.
|
||||
</span>
|
||||
<span id="notificationBannerOpera">
|
||||
Opera users: By default, Opera will block extensions from running on search engines.
|
||||
Search engine access can be enabled per-extension by going to "chrome://extensions/"
|
||||
and selecting the "Allow access to search page results" option under Indie Wiki Buddy.
|
||||
</span>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" src="popup.js"></script>
|
||||
|
|
6
popup.js
6
popup.js
|
@ -229,6 +229,12 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
document.getElementById('notificationBannerBug').style.display = 'block';
|
||||
}
|
||||
|
||||
// If running Opera, show note about search engine acces
|
||||
if (navigator.userAgent.match(/OPR\//)) {
|
||||
notificationBanner.style.display = 'block';
|
||||
document.getElementById('notificationBannerOpera').style.display = 'block';
|
||||
}
|
||||
|
||||
loadBreezeWikiOptions();
|
||||
|
||||
// Listener for settings page in new tab:
|
||||
|
|
|
@ -310,6 +310,11 @@
|
|||
turning the extension off and on via your browser's extension settings (chrome://extensions/),
|
||||
and/or reinstalling the extension.
|
||||
</span>
|
||||
<span id="notificationBannerOpera">
|
||||
Opera users: By default, Opera will block extensions from running on search engines.
|
||||
Search engine access can be enabled per-extension by going to "about:extensions"
|
||||
and selecting the "Allow access to search page results" option under Indie Wiki Buddy.
|
||||
</span>
|
||||
<span id="notificationBannerReview">
|
||||
Enjoying Indie Wiki Buddy? Please leave a review!
|
||||
<br />
|
||||
|
|
|
@ -528,6 +528,12 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
document.getElementById('notificationBannerBug').style.display = 'block';
|
||||
}
|
||||
|
||||
// If running Opera, show note about search engine acces
|
||||
if (navigator.userAgent.match(/OPR\//)) {
|
||||
notificationBanner.style.display = 'block';
|
||||
document.getElementById('notificationBannerOpera').style.display = 'block';
|
||||
}
|
||||
|
||||
// Count number of times settings have been opened
|
||||
// Purposefully using local storage instead of sync
|
||||
chrome.storage.local.get({ 'countSettingsOpened': 0 }, function (item) {
|
||||
|
|
Loading…
Reference in New Issue