summaryrefslogtreecommitdiff
path: root/custom-ubo-assets-bootstrap-location.patch
blob: 81a703fa495c96fc8eb699241a8b373798403b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- 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",
               });
bgstack15