0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 21:53:31 -05:00
LibreWolf/patches/custom-ubo-assets-bootstrap-location.patch
2022-01-26 11:40:27 +01:00

17 lines
753 B
Diff

--- a/toolkit/components/extensions/parent/ext-storage.js
+++ b/toolkit/components/extensions/parent/ext-storage.js
@@ -177,6 +177,14 @@ this.storage = class extends ExtensionAPI {
let data = await lookup;
if (!data) {
+ const assetsBootstrapLocation = Services.prefs.getStringPref("librewolf.uBO.assetsBootstrapLocation", undefined);
+ if (extension.id == "uBlock0@raymondhill.net" && assetsBootstrapLocation) {
+ return {
+ adminSettings: {
+ assetsBootstrapLocation
+ }
+ }
+ }
return Promise.reject({
message: "Managed storage manifest not found",
});