Skip to content

Commit

Permalink
Fix more encoding issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Oct 14, 2014
1 parent f53c8ff commit f01c874
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions static/index.prod.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en" data-ng-app="levelCrash">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link href="/css/style.css?1413265854503" rel="stylesheet" />
<link href="/css/style.css?1413315213280" rel="stylesheet" />
<title>Level crasher</title>
</head>
<body data-ng-cloak>
<div data-ng-view></div>
<script src="/js/build/lib/lib.min.js?1413265854503"></script>
<script src="/js/build/app/app.min.js?1413265854503"></script>
<script src="/js/build/lib/lib.min.js?1413315213280"></script>
<script src="/js/build/app/app.min.js?1413315213280"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion static/js/build/app/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/components/dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@

<!-- A link to open in the app. -->
<div class="openbutton">
<a href="fb462788903779716://?action=level&name={{level.name}}" class="button">Play</a>
<a href="fb462788903779716://?action=level&name={{makePath(level.name)}}" class="button">Play</a>
</div>
</div>
4 changes: 4 additions & 0 deletions static/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@
}
return sideResized(side, index, newVal, true);
};
// The first of 2 double encoding. I blame java.
$scope.makePath = function(path) {
return encodeURIComponent(encodeURIComponent(path));
};
}]);

angular.module('levelCrash.controllers')
Expand Down

0 comments on commit f01c874

Please sign in to comment.