fromSitePoint Forums | Web Development & Design Community
4 days agoMalware Using Service Workers
Unfortunely what you are doing is not enough. According to the article in order for these attacks to succed it required that a website or webapp is supcetible to XSS attack.