Skip to content

Commit

Permalink
added decode function for #56
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Dec 21, 2011
1 parent a2e8051 commit 94099a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@ var ext = {
browserversion: ext.browser.version,
contextmenu: utils.get('contextMenu'),
cookiesenabled: window.navigator.cookieEnabled,
decode: function () {
return function (text, render) {
return decodeURIComponent(render(text));
};
},
doanchortarget: utils.get('doAnchorTarget'),
doanchortitle: utils.get('doAnchorTitle'),
encode: function () {
Expand Down
5 changes: 5 additions & 0 deletions src/pages/templates_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ <h3>Definitions</h3>
<td>String</td>
<td>Access the value of the cookie provided</td>
</tr>
<tr>
<td>decode</td>
<td>String</td>
<td>Decodes the previously encoded text provided</td>
</tr>
<tr>
<td>encode</td>
<td>String</td>
Expand Down

0 comments on commit 94099a6

Please sign in to comment.