Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from abhinav-upadhyay/fix-playground
Browse files Browse the repository at this point in the history
Fix a minor bug in the playground app, resulting in 404's in some cases.
  • Loading branch information
christianbundy committed Feb 24, 2014
2 parents 5bb7912 + 8d96eab commit deb92e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playground/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ $('document').ready(function () {
for (var i = 0; i < vars.length; i++) {
param = vars[i].split('=');
if (param[0] === 'example') {
if (param[1].charAt(param[1].length - 1) == '/')
return param[1].replace('/', '');
return param[1];
}
}
Expand Down

0 comments on commit deb92e2

Please sign in to comment.