mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 11:56:50 +00:00 
			
		
		
		
	Merge branch 'sprint-3' into 49-image-feature
This commit is contained in:
		| @@ -102,6 +102,7 @@ function setupUpdate(){ | ||||
| 			while (tagContainer.firstChild) { | ||||
| 				tagContainer.removeChild(tagContainer.firstChild); | ||||
| 			} | ||||
|        | ||||
| 			for (let i = 0; i < currReview["tags"].length; i++) { | ||||
| 				let tagSetVal = currReview["tags"][i].toLowerCase() | ||||
| 				tagSet.add(tagSetVal); | ||||
|   | ||||
| @@ -40,3 +40,14 @@ function initFormHandler() { | ||||
| 		window.location.assign("./CreatePage.html"); | ||||
| 	}); | ||||
| } | ||||
|  | ||||
| const registerServiceWorker = async () => { | ||||
| 	if ("serviceWorker" in navigator) { | ||||
| 		try { | ||||
| 			const registration = await navigator.serviceWorker.register("./sw.js", {scope: "./"}); | ||||
| 		} catch (error) { | ||||
| 			console.error(`Registration failed with ${error}`); | ||||
| 		} | ||||
| 	} | ||||
| }; | ||||
| registerServiceWorker(); | ||||
		Reference in New Issue
	
	Block a user