These are chat archives for FreeCodeCamp/HelpJavaScript

18th
Dec 2018
Pagnito
@Pagnito
Dec 18 2018 01:05
i dunno why but pointer events none, and .disabled = true doesnt seem to work on mobile for me
oh nvm had a confusion wit some if statements
Pagnito
@Pagnito
Dec 18 2018 01:28
omfgasfasflknsdflkds
i clear all history
all cache
and somehow there is stil FUCKING CACHE
Pagnito
@Pagnito
Dec 18 2018 01:36
had to clear all browsing data from last 24 hrs
anyways, if anyone else is working with PWAs let me know, cant understand why my beforeinstallprompt isnt firing
Pagnito
@Pagnito
Dec 18 2018 02:11
if i say cache control public it can get cached by local servers of the user? and other can use that cache?
Nate Mallison
@NJM8
Dec 18 2018 15:47
Anyone around?
Christopher McCormack
@cmccormack
Dec 18 2018 15:54
probably someone
Christopher McCormack
@cmccormack
Dec 18 2018 16:02
@NJM8 what's up?
Pagnito
@Pagnito
Dec 18 2018 16:04
Only 5 % of the world uses firefox
And 13% safari
I didnt expect safari to be higher than firefox
Nate Mallison
@NJM8
Dec 18 2018 16:06
Shame. Safari is dumb
@cmccormack More git questions
So basically I'm rebasing from master into feature branch because, I guess it will keep things cleaner? There is a merge conflict, but neither the incoming or current changes actually show the work I just did on my branch. So I'm not really sure what the deal is. does it not matter and I can accept either change and the newest stuff in my branch will be what is used?
Also am I being silly by rebasing and should I just push and merge the branch into master
I don't know if that would cause the same conflict as I am experiencing?
Christopher McCormack
@cmccormack
Dec 18 2018 16:07
@Pagnito I saw that recently too, blew my mind
Nate Mallison
@NJM8
Dec 18 2018 16:07
I think I'm just going to try and merge instead
doesn't make sense to go through every file change on the rebase when they are old and get overwritten anyways
Christopher McCormack
@cmccormack
Dec 18 2018 16:07
@NJM8 I think rebasing is better, if you're getting a merge conflict you should see the conflict and be able to fix it
Pagnito
@Pagnito
Dec 18 2018 16:07
Ya i agree, safar is garbo in my opinion
Christopher McCormack
@cmccormack
Dec 18 2018 16:08
which files are old, your branch?
Pagnito
@Pagnito
Dec 18 2018 16:08
And i jus saw that mobile safari is up tp 31% o.O
Christopher McCormack
@cmccormack
Dec 18 2018 16:08
rebasing will bring your branch up to date, you only have to fix conflicts where your branch file differs from the master
@Pagnito globally or US?
Pagnito
@Pagnito
Dec 18 2018 16:09
Hold on lemme check
Christopher McCormack
@cmccormack
Dec 18 2018 16:09
guessing that's only US
Nate Mallison
@NJM8
Dec 18 2018 16:10
@cmccormack It's a case where I was working on branch A, needed to wrap up some stuff and push that branch because it had some other fixes on it. Then opened branch B and continued working on my fixes. Now I'm getting some merge conflicts when trying to rebase but so far none of them actually show my latest work. Can't I just push my working branch up and have it merged into master?
I'm not sure there is value to rebasing at this point. I'm the only one working on it anyways.
Christopher McCormack
@cmccormack
Dec 18 2018 16:12
@NJM8 either one will bring it up to date, what is different is where your commits are added - I like rebase because it will move a branch's commits to the top of whatever branch you are rebasing on (usually master)
Pagnito
@Pagnito
Dec 18 2018 16:12
Ya article didnt say except that it came from netmarketshare.com
Christopher McCormack
@cmccormack
Dec 18 2018 16:13
@NJM8 can you merge A into master then rebase B onto master?
my understanding is the common practice is always merge into master
rebase is more useful for branches to bring them up to the master head
Nate Mallison
@NJM8
Dec 18 2018 16:16
I tried merging master into my branch and no issues and all my latest changes still there. So I assume merging my branch into master will be fine. Just going to do that. IDC much about the history and I'm going to be better about branch practices.
New years resolution haha
Jason Luboff
@JLuboff
Dec 18 2018 16:18
Morning :wave:
Nate Mallison
@NJM8
Dec 18 2018 16:18
:wave:
Jason Luboff
@JLuboff
Dec 18 2018 16:19
Whats happening?
Christopher McCormack
@cmccormack
Dec 18 2018 16:21
@NJM8 either one will work fine if you're working on your own
I like to rebase as I don't have to add an extra commit :)
@JLuboff what it is?
Jason Luboff
@JLuboff
Dec 18 2018 16:23
Just back to the grind
You?
Christopher McCormack
@cmccormack
Dec 18 2018 16:23
messing around with git like @NJM8 :)
Jason Luboff
@JLuboff
Dec 18 2018 16:24
Fun stuff
Christopher McCormack
@cmccormack
Dec 18 2018 16:28
@JLuboff yes it is
or is it
I dunno
kind of fun sometimes
terrifying at others
Jason Luboff
@JLuboff
Dec 18 2018 16:29
Lol
Christopher McCormack
@cmccormack
Dec 18 2018 16:31
Just when I think I pretty much understand it I run into a new error
@JLuboff if you get some free time you should consider volunteering with FCC to help with the Pull Requests, I sure learned a lot you might too
Jason Luboff
@JLuboff
Dec 18 2018 16:40
@cmccormack Why're you talking to yourself?
Christopher McCormack
@cmccormack
Dec 18 2018 16:40
grr
fixed lol
Jason Luboff
@JLuboff
Dec 18 2018 16:42
Oh... it was for me! Well in that case...maybe :P
Pagnito
@Pagnito
Dec 18 2018 16:42
anyone ever encounter an issue with react router, where on certain devices it works, but on others it will navigate to a blank page until u refresh the page ad then it shows
Christopher McCormack
@cmccormack
Dec 18 2018 16:57
@Pagnito nope
Pagnito
@Pagnito
Dec 18 2018 16:57
damn
Christopher McCormack
@cmccormack
Dec 18 2018 16:57
are you using anything special in your routes?
Pagnito
@Pagnito
Dec 18 2018 16:58
and the only device i have that is showing the bug isnt working with usb debuggin T.T
<Route
          exact
          path="/account"
          render={props => <Account {...props} user={this.state.user} />}
        />
Christopher McCormack
@cmccormack
Dec 18 2018 16:58
odd you would have to refresh, something wrong with your react router maybe
Pagnito
@Pagnito
Dec 18 2018 16:58
yea its driving me nuts
Christopher McCormack
@cmccormack
Dec 18 2018 16:59
this is a full stack app?
Pagnito
@Pagnito
Dec 18 2018 16:59
i just showed this app to my family, and my bro who is programmer, his first words back were "nice, but i have to keep refreshing it to show stuff"
i was like WHYYYYYYYY
ya it is
the weird thing is, his phone is way better than mine
and it works perfect with my phone and my laptop
but he said its doing that blank page thing on his desktop and mobile
Jason Luboff
@JLuboff
Dec 18 2018 17:03
When you're testing it...are you doing so in local dev environment or hosted environment?
Pagnito
@Pagnito
Dec 18 2018 17:03
both, the thing is, i cant recreate the problem on my devices, except my dads
which u jus gave me an idea
ima localtunnel port local
and see if it works
on my dads
Jason Luboff
@JLuboff
Dec 18 2018 17:04
Ya I would also clear your cache in your browser, etc and see if you can recreate. Specifically recreate against the hosted environment
Christopher McCormack
@cmccormack
Dec 18 2018 17:04
Can you add something like Sentry that pushes logs to a syslog server or something?
Pagnito
@Pagnito
Dec 18 2018 17:05
ill have to google what sentry is, but firebase has logs
so ima check those out ina sec too
it works perfect on my devices when i clear all cahce, and i mean all lol @JLuboff
yea it does the same thing on local server
Christopher McCormack
@cmccormack
Dec 18 2018 17:06
you're using React Router, will you see the issue in the firebase logs? Is this SSR?
Pagnito
@Pagnito
Dec 18 2018 17:06
the css styling for background loads, but only that until refresh
nah its client side
nothin in the firebase logs
Pagnito
@Pagnito
Dec 18 2018 17:12
i wish there was another way to see the mobile logs
Screen Shot 2018-12-18 at 12.12.43 PM.png
this is what my remote device debug page looks like
no input for navigating
i think i figured it out
since its a PWA
its reaching into cache for everythig first
even tho i have an else statement to go to network if it doesnt find cache
but anways
when i install the app on homescreen
everythgin works
Christopher McCormack
@cmccormack
Dec 18 2018 17:35
well that's cool you sort of figured it out
Jason Luboff
@JLuboff
Dec 18 2018 17:38
One time I sort of figured something out...than never again
Christopher McCormack
@cmccormack
Dec 18 2018 17:39
@JLuboff gotta stay away from that figuring stuff out
bad business
Jason Luboff
@JLuboff
Dec 18 2018 17:39
Right?
@cmccormack So.. you on your vacation yet?
Christopher McCormack
@cmccormack
Dec 18 2018 17:43
yeah but haven't really taken any time to enjoy it yet
Jason Luboff
@JLuboff
Dec 18 2018 17:44
Any plans or just relaxing (when you do enjoy it)
Christopher McCormack
@cmccormack
Dec 18 2018 17:45
We're heading to Sedona for a few days vacation tomorrow, then down to Phoenix probably for the remainder of the year
I'm going to work on a personal project if I find time, otherwise going to work on the house a bit while the weather is good
Jason Luboff
@JLuboff
Dec 18 2018 17:46
Good deal. Personal app project or something else
Christopher McCormack
@cmccormack
Dec 18 2018 17:47
Personal App
something I've been wanting to complete. Probably just outline and add user stories this year
Jason Luboff
@JLuboff
Dec 18 2018 17:49
Nice
Aditya
@ezioda004
Dec 18 2018 18:47
Fellas :wave:
Brad
@bradtaniguchi
Dec 18 2018 18:48
Sup
Aditya
@ezioda004
Dec 18 2018 18:49
@cmccormack Thanks for the link, I passed out last night
Christopher McCormack
@cmccormack
Dec 18 2018 18:50
@ezioda004 you're welcome
Aditya
@ezioda004
Dec 18 2018 18:50
@bradtaniguchi Just got home from work, got a welcoming party :D
Brad
@bradtaniguchi
Dec 18 2018 18:51
haha I just GOT to work XD
@Pagnito Your working with firebase right? I have a question about where you put your env-variables, like the firebase API keys and what not
catalin560
@catalin560
Dec 18 2018 18:53
hey
Christopher McCormack
@cmccormack
Dec 18 2018 18:53
@bradtaniguchi hi
@catalin560 heya
@ezioda004 you started the new job?
catalin560
@catalin560
Dec 18 2018 18:54
did you guys knew that if you give an element an id, example: myAwesomeID
Aditya
@ezioda004
Dec 18 2018 18:54
@cmccormack Yeah, started yesterday
catalin560
@catalin560
Dec 18 2018 18:54
and in javascript you can just call it with window.myAwesomeID or just myAwesomeID and you'd get that element
Kudzu
@czhower
Dec 18 2018 18:55
yes, but in general its a bad idea to clutter up the global namespace. So keep any additions minimal.
catalin560
@catalin560
Dec 18 2018 18:56
@czhower do you have any idea of any similar attributes that do this?
Christopher McCormack
@cmccormack
Dec 18 2018 18:56
Are you saying you shouldn't use id attributes on elements?
Kudzu
@czhower
Dec 18 2018 18:56
yeah, tons of JS libs, especially older ones.
its how you end up with conflicts
Christopher McCormack
@cmccormack
Dec 18 2018 18:56
@ezioda004 how has it been?
Kudzu
@czhower
Dec 18 2018 18:56
you use "foo" and then some library you use also uses "foo". Now you have a "fight"
Aditya
@ezioda004
Dec 18 2018 18:56
@catalin560 In chrome console, you could actually use jQuery like selector. Example $("div")
Kudzu
@czhower
Dec 18 2018 18:57
best to put it a second level down, something like window.mycompany.myid
Christopher McCormack
@cmccormack
Dec 18 2018 18:57
@catalin560 you're talking about html elements right?
Kudzu
@czhower
Dec 18 2018 18:57
then everything goes under window.mycompany - and the chance of conflicts is reduced to near nil.
catalin560
@catalin560
Dec 18 2018 18:57
@cmccormack yes
Kudzu
@czhower
Dec 18 2018 18:57
aah, elements yet end up there.
catalin560
@catalin560
Dec 18 2018 18:57
@czhower I actually don't care about conflicts
Kudzu
@czhower
Dec 18 2018 18:57
I thought you were creating it manually.
catalin560
@catalin560
Dec 18 2018 18:57
as I like to keep use of 3rd party stuff minimal
Christopher McCormack
@cmccormack
Dec 18 2018 18:57
I thought that at first too :)
Aditya
@ezioda004
Dec 18 2018 18:57
@cmccormack Not bad so far - liking so far, and they like are liking me too, so thats good. Just a quite a lot of work
Kudzu
@czhower
Dec 18 2018 18:58
you might not care about conflicts now, but things grow. Best to form proper habits now.
Christopher McCormack
@cmccormack
Dec 18 2018 18:58
@ezioda004 That's great - how much time they giving you to catch up?
catalin560
@catalin560
Dec 18 2018 18:58
so anyway... are there any other attributes that behave the same as ID does?
Kudzu
@czhower
Dec 18 2018 18:58
variables
Aditya
@ezioda004
Dec 18 2018 18:58
@cmccormack Lol, I started coding and reviewing today
catalin560
@catalin560
Dec 18 2018 18:59
@czhower are those html attributes?
Aditya
@ezioda004
Dec 18 2018 18:59
var* variable
Kudzu
@czhower
Dec 18 2018 18:59
no, but they share the same namespaces. as do global functions.
Aditya
@ezioda004
Dec 18 2018 18:59
let, and const dont share
catalin560
@catalin560
Dec 18 2018 18:59
:angry:
Jason Luboff
@JLuboff
Dec 18 2018 19:00
@ezioda004 A welcome party and everything eh? Sounds like a nice place to work
Christopher McCormack
@cmccormack
Dec 18 2018 19:00
@ezioda004 it was that easy to get familiar with their codebase and practices? That's either really good or really bad lol
Kudzu
@czhower
Dec 18 2018 19:00
@ezioda004 Yes, but let and const are rather new. Many older libraries and code dont use them.
and that affects block scope, which is not the same as a func scoped var anyway.
catalin560
@catalin560
Dec 18 2018 19:01
so any other html attribute that behaves just like the ID (in the sense that it adds itself to the global object)
Kudzu
@czhower
Dec 18 2018 19:01
only global vars ever go into window
catalin560
@catalin560
Dec 18 2018 19:01
is the name attribute of the img tag
Kudzu
@czhower
Dec 18 2018 19:01
name isnt used for the DOM, name is used for FORM tag
catalin560
@catalin560
Dec 18 2018 19:01
like `<img src="" name="myawesomeimg">
and I can call it in js with document.myawesomeimg
or form or whatever
you get my point
Kudzu
@czhower
Dec 18 2018 19:02
window already has functions in it too, so you have to be careful with names you use in IDs.
Aditya
@ezioda004
Dec 18 2018 19:02
@JLuboff Yeah, not bad, still need to find a place tho
@cmccormack Haha, it was just basic React code with canvas that I was tasked to do so not a biggie to get started though I was told I could take a week :D
@czhower I'm not sure how old libraries we're talking about..but many older libraries used IIFE's to avoid polluting the namespace conflict
Kudzu
@czhower
Dec 18 2018 19:02
Many do, not all do.
And then you have JS itself wtih all its built in functions, window.alert etc...
Christopher McCormack
@cmccormack
Dec 18 2018 19:03
@catalin560 are you asking or stating?
catalin560
@catalin560
Dec 18 2018 19:03
asking...
for other html attributes that behave like id or name
Kudzu
@czhower
Dec 18 2018 19:04
off the top of my head, I dont think other HTML attributes affect window entries, but many JS things do. And of course you have the default entries that exist already in the DOM
Aditya
@ezioda004
Dec 18 2018 19:04
The point stands, to move away I believe they are introducing globalThis object and JS standard library
Christopher McCormack
@cmccormack
Dec 18 2018 19:04
body, head, probably html
catalin560
@catalin560
Dec 18 2018 19:04
lol those are classics
Kudzu
@czhower
Dec 18 2018 19:04

"HTML id conflicts
The JavaScript DOM bindings allow indexing by HTML id. Functions and properties share the same namespace in JavaScript. So, when an id in your HTML has the same name as one of your functions or properties, you can get logic errors that are hard to track down. While this is more of a CSS best practice issue, it’s important to remember when you can’t solve your javascript issue.

var listitems = document.getElementsByTagName('li');

var liCount = listitems.length; // if you have <li id="length">, returns that <li> instead of a count.

If you’re marking up (X)HTML, never use a javascript method or property name as the value for an ID. And, when you’re coding the javascript, avoid giving variables names that are ID values in the (X)HTML.

"

There is a lot more than body, etc...
look in a JS debugger at window on an empty HTML page.
also, its not always window. In Node its global instead of window but serves the same role. Window IIRC is undefined
Christopher McCormack
@cmccormack
Dec 18 2018 19:06
I've not played with this but there's also document.links and document.images - probably fun to use for scraping
catalin560
@catalin560
Dec 18 2018 19:06
:thought_balloon: I wasn't aware of those @cmccormack
so what do they return? every image and anchor link in the page?
Kudzu
@czhower
Dec 18 2018 19:07
look at all the stuff in an "empty" window object:
https://www.w3schools.com/jsref/obj_window.asp
Christopher McCormack
@cmccormack
Dec 18 2018 19:07
yup
Kudzu
@czhower
Dec 18 2018 19:07
There are dozens in there.
Christopher McCormack
@cmccormack
Dec 18 2018 19:08
@czhower that's something I've not really considered but that's a great example, thanks
with all the JS used in more modern apps I wonder if it's better not to use id on elements now...
Kudzu
@czhower
Dec 18 2018 19:09
@catalin560 Not sure if you are new to webdev, but the DOM (and especially JS) were basically hastily hacked together 20+ years ago and we've been suffering ever since. So if something seems stupid, it might just be that way. Get used to it and accept it, its the key to being successful in web dev. At least its far better than it used to be, but still lots of garbage around.
catalin560
@catalin560
Dec 18 2018 19:09
I do have experience
but I kinda like the fact that instead of using document.getElementById you can just type its name and puff
do your stuff
Christopher McCormack
@cmccormack
Dec 18 2018 19:10
there aren't really that many more that target specific elements, title was the only other one I found so far
Aditya
@ezioda004
Dec 18 2018 19:10
Sadly stuff cant be fixed for backward compatibility
catalin560
@catalin560
Dec 18 2018 19:10
@cmccormack really? I'll test it right now
Kudzu
@czhower
Dec 18 2018 19:10
Basically, much like where I live (a remote place), if something looks "broken", it often easier not to even ask why and just accept what is.
Christopher McCormack
@cmccormack
Dec 18 2018 19:10
may not be the title element though, didn't test
yeah it's not
Aditya
@ezioda004
Dec 18 2018 19:11
For example document.all being falsy
Kudzu
@czhower
Dec 18 2018 19:11
getelementbyid is fine, you just have to make sure the identifiers you use in ID attributes dont conflict with built in ones, or with ones used by libs.
I dont use IDs as our framework as its own way to name things, but if I do and I cant control them (ie generated or under another users control) I sometimes prefixed them all, ie id_Name, id_City etc.... that reduces chances of conflict greatly.
catalin560
@catalin560
Dec 18 2018 19:12
how is that fine but window.myAwesomeId isn't?
Kudzu
@czhower
Dec 18 2018 19:13
that case is ok
but that is just one ID. Most people have more than one. Thats the point. Be careful about conflicts.
catalin560
@catalin560
Dec 18 2018 19:14
does anyone know how you call this effect? like declaring the id and it automatically gets added to the window object?
so I can know what to google :laughing:
Kudzu
@czhower
Dec 18 2018 19:15
I dont know if the behavior has a specific name. Its just how it works. Its part of the specification.
if you search docs on id attribute it details it.
its one of the main purposes of ID

"there is exactly one DOM element elem whose property name has the value key. elem’s tag must be one of: a, applet, area, embed, form, frame, frameset, iframe, img, object."

Name can be used too

in limited cases.
Kudzu
@czhower
Dec 18 2018 19:21
so for img, name or ID are both put into window
catalin560
@catalin560
Dec 18 2018 19:27
@czhower well its good to be aware of this, it can really help prevent unwanted results
at least in some situations
Kudzu
@czhower
Dec 18 2018 19:28
Exactly
Pagnito
@Pagnito
Dec 18 2018 19:46
@bradtaniguchi i use dotenv package
Brad
@bradtaniguchi
Dec 18 2018 19:46
@Pagnito how do you get that to work on the client-side? Is it part of your build?
Pagnito
@Pagnito
Dec 18 2018 19:47
oh i dunno, im not using any env variables on the client side, only the server
i just read this tho
they saying u shouldnt use env var on the client side
unless i guess u just need global variables or something maybe? i dunno if thats a hack ppl use >.<
Kudzu
@czhower
Dec 18 2018 19:52
@Pagnito What are you trying to achieve?
Pagnito
@Pagnito
Dec 18 2018 19:52
@czhower not me, its brad
he asked me about env var on the client side, as i understood
Lucci Paula
@luccipaula
Dec 18 2018 20:00
@padunk Thank you, I think I was having a brain fart that day haha! I also added e.target !== menu // the label
Brad
@bradtaniguchi
Dec 18 2018 20:09
Yea, I was just wondering the approach @Pagnito was taking on the client-side to get env variables. I legit have a gitignored JS file loaded as a script that attaches environment variables to the window object. No critical API keys or anything, but sensitive enough I don't want them lying around.
I previously used a script to generate the file, which used dot-env, but the current approach of using a gitignored file seems simplier, for the most part
Tiago Correia
@tiagocorreiaalmeida
Dec 18 2018 20:20
Hello everyone
Christopher McCormack
@cmccormack
Dec 18 2018 20:21
@tiagocorreiaalmeida :wave:
Tiago Correia
@tiagocorreiaalmeida
Dec 18 2018 20:21
does anyone knows some api or github repository that contains a list of the existent programming langauges and frameworks?
Christopher McCormack
@cmccormack
Dec 18 2018 20:21
like all of them?
Tiago Correia
@tiagocorreiaalmeida
Dec 18 2018 20:22
I guess an updated api would make more sense, but let me try come up with a good example
Christopher McCormack
@cmccormack
Dec 18 2018 20:22
Tiago Correia
@tiagocorreiaalmeida
Dec 18 2018 20:23
Imagin linkedin, where you can add X language/framework into your knowledge list
Brad
@bradtaniguchi
Dec 18 2018 20:36
So like a programming language dictionary?
Tiago Correia
@tiagocorreiaalmeida
Dec 18 2018 20:52
Yeah something like that, but that would also include frameworks and bla bla @bradtaniguchi
Brad
@bradtaniguchi
Dec 18 2018 20:54
Sounds like a lot, maybe too much. Like asking for a part catalog for ever car ever made, including aftermarket parts.
Idk if there is a "single source" out there, id go with the wiki link.
catalin560
@catalin560
Dec 18 2018 20:59
:thought_balloon: I wasn't aware there were reflective and imperative paradigms for programming languages... I wonder what they mean
Jason Luboff
@JLuboff
Dec 18 2018 21:42
Always nice when a company sends you the wrong item...and then tells you to keep it while they send the proper item as well :P
Pagnito
@Pagnito
Dec 18 2018 21:49
i have a lil problem thats pretty annoying, so im fetching initial image data from cache on load, at the same time also sending out a request to the network incase there is new images uploaded. my images are set as a background image with styles set background size cover no repeat, the request for cache usually comes in first, then half a sec later the network redupdates the page, and often the styles are stripped, and my images are showing in repeat no size cover
Pagnito
@Pagnito
Dec 18 2018 21:54
thinking about reapplying styles in callback of setState when network images come in
Christopher McCormack
@cmccormack
Dec 18 2018 22:01
@JLuboff was it a really expensive graphics card? I'll take it if you don't need it :grin:
Jason Luboff
@JLuboff
Dec 18 2018 22:09
@cmccormack Nah.. decently expensive shirt though lol
Brad
@bradtaniguchi
Dec 18 2018 22:10
@JLuboff I will happily drive down and take it off your hands, (that and any computers you don't want). I will take the burden :P
Oh darn, uh nevermind I have enough shirts hehe
Jason Luboff
@JLuboff
Dec 18 2018 22:10
Haha
@bradtaniguchi You know...you left me hanging yesterday without answering my question! :point_up: December 17, 2018 12:12 PM
Brad
@bradtaniguchi
Dec 18 2018 22:11
@JLuboff Oh we had a party so I never got back on haha, sowwy
@JLuboff And to your old question.... Yes, they loaded everything to create some CSV file
Jason Luboff
@JLuboff
Dec 18 2018 22:14
Wow..
Christopher McCormack
@cmccormack
Dec 18 2018 22:16
@bradtaniguchi yeah! you made us all wait on an answer to that all night
Brad
@bradtaniguchi
Dec 18 2018 22:16
Hahaha sorry I was having fun for once XD
left yall in suspense, just to say "yup"
The workers would start the export and leave for the night, and get it in their inbox in the morning XD
Pagnito
@Pagnito
Dec 18 2018 22:21
how do i detect if user borwser turned off javascript?
Jason Luboff
@JLuboff
Dec 18 2018 22:23
@Pagnito noscript tag can be used to display a message if JS is disabled
Christopher McCormack
@cmccormack
Dec 18 2018 22:23
well, there' s a noscript tag you can use
Jason Luboff
@JLuboff
Dec 18 2018 22:23
@bradtaniguchi Thats absurd man..
Pagnito
@Pagnito
Dec 18 2018 22:24
so if document has that tag, its as sure thing there is no javascript on that browser being executed?
Jason Luboff
@JLuboff
Dec 18 2018 22:25
I believe so
Christopher McCormack
@cmccormack
Dec 18 2018 22:27
good luck detecting if it has that tag :)
I believe the purpose is to display some content if JavaScript is not enabled, even if just a message stating JavaScript is required to display contents
if you're using SSR you may not need as much JS
Jason Luboff
@JLuboff
Dec 18 2018 22:28
Si si
Brad
@bradtaniguchi
Dec 18 2018 22:42
Ah, I start my refactor, get it to where it compiles, run the test... 120 fail :(
Jason Luboff
@JLuboff
Dec 18 2018 22:43
Damn...that sounds like a lot