>Front end web dev? Nah, who gives a shit. Embedded system that's fail deadly? Um, yes.
More likely that a frayed power cord (or one of a thousand other things) on your laptop will catch fire while you're on the client premise, causing thousands in damages, or that same laptop has some sort of trojan/virus that you spread through the client network, and you're on the hook for remediation.
IME, most of the time that's why an independent consultant needs business insurance. The quality of the work is generally handled by the contract.
This scenario seems borderline Palsgraph v. Long Island Rail Road [1].
There is liability / duty of care / grounds to sue for negligence only when the injury / damages were directly related to the nature of the business, not when there is an incidental freak accident which happens to occur on the premise.
What does front end dev work have to do with the statistical random chance that wires somewhere in the building are frayed?
Front end web dev? Nah, who gives a shit. Embedded system that's fail deadly? Um, yes.