Skip to content

Commit

Permalink
Merge branch 'main' into window-manipulator-update-for-issue-28
Browse files Browse the repository at this point in the history
  • Loading branch information
Rumyra committed Oct 4, 2023
2 parents 9dd4add + 709bc28 commit 5f2fe84
Show file tree
Hide file tree
Showing 30 changed files with 12 additions and 26 deletions.
13 changes: 0 additions & 13 deletions build/README.md

This file was deleted.

Binary file removed build/apply_css-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/beastify-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/bookmark_it-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/borderify-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/chillout_page_action-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/context_menu_demo-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/cookie_bg_picker-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/emoji_substitution-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/eslint_example-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/favourite_colour-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/favourite_colour-1.1-an+fx.xpi
Binary file not shown.
Binary file removed build/history_deleter-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/latest_download-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/list_cookies-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/navigation_stats-0.1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/notify_link_clicks_i18n-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/open_my_page-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/page_to_extension_messaging-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/page_to_extension_messaging-1.0-fx.xpi
Binary file not shown.
Binary file removed build/quicknote-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/sample_commands_extension-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/sample_commands_extension-1.0-fx.xpi
Binary file not shown.
Binary file removed build/selection_to_clipboard-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/tab_strip-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/tabs_tabs_tabs-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/user_agent_rewriter-1.0-an+fx.xpi
Binary file not shown.
Binary file removed build/window_manipulator-1.0-an+fx.xpi
Binary file not shown.
20 changes: 8 additions & 12 deletions favourite-colour/options.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
function saveOptions(e) {
browser.storage.sync.set({
async function saveOptions(e) {
e.preventDefault();
await browser.storage.sync.set({
colour: document.querySelector("#colour").value
});
e.preventDefault();
}

function restoreOptions() {
let storageItem = browser.storage.managed.get('colour');
storageItem.then((res) => {
document.querySelector("#managed-colour").innerText = res.colour;
});
async function restoreOptions() {
let res = await browser.storage.managed.get('colour');
document.querySelector("#managed-colour").innerText = res.colour;

let gettingItem = browser.storage.sync.get('colour');
gettingItem.then((res) => {
document.querySelector("#colour").value = res.colour || 'Firefox red';
});
res = await browser.storage.sync.get('colour');
document.querySelector("#colour").value = res.colour || 'Firefox red';
}

document.addEventListener('DOMContentLoaded', restoreOptions);
Expand Down
5 changes: 4 additions & 1 deletion root-cert-stats/background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
"use strict";

let rootCertStats = {};
// Note: declared with "var" because popup.js references this global variable.
// If this were to be declared with "const" or "let", then the variable would
// still be available to this file, but not to popup.js.
var rootCertStats = {};

/*
On an onHeadersReceived event, if there was a successful TLS connection
Expand Down

0 comments on commit 5f2fe84

Please sign in to comment.