Make sure bool url params actually contain value 'true'

(closes #4222)
This commit is contained in:
Bryan Housel
2017-08-08 09:51:57 -04:00
parent d0fcae1b15
commit 163323d3df
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ export function behaviorHash(context) {
context.storage('commentDate', Date.now());
}
if (q.walkthrough) {
if (q.walkthrough === 'true') {
hash.startWalkthrough = true;
}

View File

@@ -92,7 +92,7 @@ export function utilDetect(force) {
// detect text direction
var q = utilStringQs(window.location.hash.substring(1));
var lang = dataLocales[detected.locale];
if ((lang && lang.rtl) || q.hasOwnProperty('rtl')) {
if ((lang && lang.rtl) || (q.rtl === 'true')) {
detected.textDirection = 'rtl';
} else {
detected.textDirection = 'ltr';