mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 03:46:50 +00:00 
			
		
		
		
	Merge branch 'sprint-3' into filter-sort
This commit is contained in:
		| @@ -99,6 +99,7 @@ function setupUpdate(){ | ||||
| 			while (tagContainer.firstChild) { | ||||
| 				tagContainer.removeChild(tagContainer.firstChild); | ||||
| 			} | ||||
|        | ||||
| 			let tagSetVal; | ||||
| 			for (let i = 0; i < currReview["tags"].length; i++) { | ||||
| 				tagSetVal = currReview["tags"][i].toLowerCase() | ||||
|   | ||||
| @@ -147,3 +147,14 @@ function loadReviews(index, reviewIDs){ | ||||
| 	} | ||||
|  | ||||
| } | ||||
|  | ||||
| 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