This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-17
Channels
- # adventofcode (2)
- # bangalore-clj (1)
- # beginners (45)
- # boot (26)
- # cljs-dev (8)
- # cljsrn (25)
- # clojure (41)
- # clojure-austin (2)
- # clojure-belgium (6)
- # clojure-mke (3)
- # clojure-russia (37)
- # clojure-sanfrancisco (3)
- # clojure-spec (57)
- # clojure-taiwan (1)
- # clojure-uk (7)
- # clojurescript (27)
- # clr (1)
- # code-reviews (3)
- # core-async (1)
- # datascript (5)
- # datomic (19)
- # emacs (12)
- # hoplon (59)
- # lambdaisland (9)
- # lein-figwheel (3)
- # off-topic (4)
- # om (1)
- # onyx (51)
- # pedestal (1)
- # protorepl (2)
- # re-frame (12)
I've got a HTML file nested inside a folder in my site directory. It seems that boot reload doesn't work for me on that particular file. I tried putting a forward slash at the front of app.js in the template HTML file however that broke all boot reloading. Is there a simple fix for this. It is not immediately obvious to me?
I’m trying out https://github.com/adzerk-oss/boot-bookmarklet and run into a problem
I want to make a bookmarklet which sets the scroll location using something from localstorage:
(do (set! (.. js/document -body -scrollTop)
(.getItem js/localStorage "scroll-y"))
js/undefined)
The generated code seems to end with:
if(P=y)P=9<=I;J=P}J||A&&G("1.9.1");y&&G("9");document.body.scrollTop=localStorage.getItem("scroll-y");
which might be the problem@borkdude you could try :output-wrapper
(compiler option)
@borkdude do you invoke the cljs
task yourself or does the task do it for you?
It does so for me: https://github.com/adzerk-oss/boot-bookmarklet/blob/master/src/adzerk/boot_bookmarklet.clj#L44
@borkdude there's an issue that discusses what should be the default, you can weigh in if you like: https://github.com/adzerk-oss/boot-cljs/issues/64
for general cljs I don’t think it should be the default, but for this task it makes a lot of sense
should be easy to create a PR for boot-bookmarklet
(easier than switching to making a chrome ext 😄 )
but maybe there are other people who want to return something from their bookmarklet, probably should be configurable
Creating an extension was actually easier than I though: https://github.com/borkdude/restore-scroll
cool 👍
no more cljs though 😛 (which in this situation makes sense I guess 🙂 )
how do I check what dependencies boot has downloaded?