Skip to content

Commit

Permalink
force pid, clean package
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywrnr committed Feb 19, 2024
1 parent fc08139 commit a293477
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "rambler",
"version": "0.1.0",
"private": true,
"homepage": ".",
"homepage": "https://berkeleyhci.github.io/rambler",
"repository": {
"type": "git",
"url": "https://github.com/BerkeleyHCI/rambler.git"
Expand Down
6 changes: 0 additions & 6 deletions app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
<meta name="HandheldFriendly" content="true" />
<meta name="theme-color" content="#FFFFFF" />
<meta name="description" content="Rambler" />
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Expand Down
19 changes: 10 additions & 9 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1711,16 +1711,17 @@ class App extends Component {
super(props);
let pId = localStorage.getItem("pId");
if (!pId) {
pId = prompt("Please enter your participant ID");
// if not a valid uuidv4-formatted string, make up a new one.
if (
!pId ||
!pId.match(/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/)
) {
pId = uuidv4();
alert("Invalid ID, using " + pId + " instead.");
}
pId = uuidv4();
localStorage.setItem("pId", pId);
// pId = prompt("Please enter your participant ID");
// if not a valid uuidv4-formatted string, make up a new one.
// if (
// !pId ||
// !pId.match(/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/)
// ) {
// pId = uuidv4();
// alert("Invalid ID, using " + pId + " instead.");
// }
}
this.state = {
pId: pId,
Expand Down

0 comments on commit a293477

Please sign in to comment.