diff --git a/ext/manifest.json b/ext/manifest.json index 63899fb..98712ac 100644 --- a/ext/manifest.json +++ b/ext/manifest.json @@ -31,6 +31,6 @@ } ], "permissions": ["tabs", "https://hn.algolia.com/*"], - "content_security_policy": "script-src 'self' 'unsafe-eval' 'sha256-CfMPE8ys/ylJ5D9qKG0a9/UejrcczMr4/EmFCbVbgcc=' 'sha256-XsBu2nEJnS7x/Izq1v7dzy3Ze5myJMHvg4zukh/R1Yk=' 'sha256-AUCho1UyOpYFSZDg8EM9SYlysRIrUpQKZ7iE9CFSYfU=' 'sha256-vLlTaRFN8A2FPadIx711FwK9Ytd6LXkAzuEYAdC0D1k='; object-src 'self'; connect-src 'self' https://hn.algolia.com", + "content_security_policy": "script-src 'self' 'unsafe-eval' 'sha256-CfMPE8ys/ylJ5D9qKG0a9/UejrcczMr4/EmFCbVbgcc=' 'sha256-XsBu2nEJnS7x/Izq1v7dzy3Ze5myJMHvg4zukh/R1Yk=' 'sha256-AUCho1UyOpYFSZDg8EM9SYlysRIrUpQKZ7iE9CFSYfU=' 'sha256-vLlTaRFN8A2FPadIx711FwK9Ytd6LXkAzuEYAdC0D1k=' 'sha256-uM0I4me9aSUPORchT/KpGrvBQV6915H0JG2FGR5+BOs=' https://cdn.amplitude.com; object-src 'self'; connect-src 'self' https://hn.algolia.com", "web_accessible_resources": ["sidebar.html", "js/*.map", "js/generated/*.map", "js/generated/out/*"] } diff --git a/project.clj b/project.clj index 4ddce90..7822119 100644 --- a/project.clj +++ b/project.clj @@ -11,20 +11,22 @@ :plugins [[lein-cljsbuild "1.1.7"]] :profiles {:cljs-shared {:cljsbuild - {:builds [{:source-paths ["src"] - :compiler {:optimizations :simple - :pretty-print true - :source-map true - :output-dir "ext/js/generated/out" - :modules {:background - {:output-to "ext/js/generated/background.js" - :entries #{"looped-in.background"}} - :content - {:output-to "ext/js/generated/content.js" - :entries #{"looped-in.content"}} - :sidebar - {:output-to "ext/js/generated/sidebar.js" - :entries #{"looped-in.sidebar"}}}}}]}} - :dev {:dependencies [[com.cemerick/piggieback "0.2.2"] + {:builds + {:main + {:source-paths ["src"] + :compiler {:optimizations :simple + :pretty-print true + :source-map true + :output-dir "ext/js/generated/out" + :modules {:background + {:output-to "ext/js/generated/background.js" + :entries #{"looped-in.background"}} + :content + {:output-to "ext/js/generated/content.js" + :entries #{"looped-in.content"}} + :sidebar + {:output-to "ext/js/generated/sidebar.js" + :entries #{"looped-in.sidebar"}}}}}}}} + :dev {:deoendencies [[com.cemerick/piggieback "0.2.2"] [org.clojure/tools.nrepl "0.2.10"]] :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}) diff --git a/src/looped_in/analytics.cljs b/src/looped_in/analytics.cljs index b7ac39c..0a4c09a 100644 --- a/src/looped_in/analytics.cljs +++ b/src/looped_in/analytics.cljs @@ -9,7 +9,7 @@ (defn do-not-track "Returns true if Do Not Track is enabled" [] - (= (.-doNotTrack js/navigator) 1)) + (= (.-doNotTrack js/navigator) "1")) (defn init-amplitude "Injects the Amplitude bootstrapping script if DNT is disabled"