phoen
Daniel Barlow 2022-02-20 17:55:39 +00:00
parent 621159a589
commit 8b564f09a7
1 changed files with 6 additions and 6 deletions

View File

@ -67,12 +67,12 @@
(fn load-easylist-json [store cb] (fn load-easylist-json [store cb]
(print "loading easylist from json") (print "loading easylist from json")
(with-open [f (io.open "easylist_min_content_blocker.json" "r")] (with-open [f (io.open "easylist_min_content_blocker.json" "r")]
(let [blocks (f:read "*a")] (let [blocks (f:read "*a")]
(store:save "easylist" (store:save "easylist"
(lgi.GLib.Bytes blocks) (lgi.GLib.Bytes blocks)
nil nil
(fn [self res] (fn [self res]
(cb (store:save_finish res))))))) (cb (store:save_finish res)))))))
(fn load-adblocks [content-manager store] (fn load-adblocks [content-manager store]
(store:fetch_identifiers (store:fetch_identifiers