Skip to content

Commit 41fef99

Browse files
committed
fixing facebook url
1 parent 1807256 commit 41fef99

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

BeliefExplorer.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@
2222
history.pushState(sectionName, "", locationNoVars + "?q="+sectionName);
2323
Process(sectionName, itemChosen)
2424
}
25-
2625

2726
var timerId = -1;
2827

2928
function setQuestion(text, done)
3029
{
31-
3230
text = text.replace(/\\n/g, "<br />");
3331
var c = 1;
3432
var cursorBlinks=0;
@@ -146,7 +144,11 @@
146144
locationNoVars = splitUrl[0]
147145
if (splitUrl.length==2)
148146
{
149-
startingPoint = splitUrl[1].split("=")[1];
147+
var params = splitUrl[1].split("=")
148+
if (params[0]=="q")
149+
{
150+
startingPoint = splitUrl[1].split("=")[1];
151+
}
150152
}
151153

152154
history.replaceState(startingPoint, "", locationNoVars + "?q="+startingPoint);

0 commit comments

Comments
 (0)