0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 13:43:04 -05:00
LibreWolf/patches/custom-ubo-assets-bootstrap-location.patch

18 lines
753 B
Diff
Raw Normal View History

2022-01-26 05:30:39 -05:00
--- 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) {
2022-01-26 05:40:27 -05:00
+ const assetsBootstrapLocation = Services.prefs.getStringPref("librewolf.uBO.assetsBootstrapLocation", undefined);
2022-01-26 05:30:39 -05:00
+ if (extension.id == "uBlock0@raymondhill.net" && assetsBootstrapLocation) {
+ return {
+ adminSettings: {
+ assetsBootstrapLocation
+ }
+ }
+ }
return Promise.reject({
message: "Managed storage manifest not found",
});