Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Fix tab navigation for Chrome Explorer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexia committed Jan 26, 2018
1 parent 49cd5b8 commit 057d03d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4,266 deletions.
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Tabber",
"version": "2.4.2",
"version": "2.4.3",
"author": [
"Eric Fortin",
"Alexia E. Smith"
Expand Down
6 changes: 3 additions & 3 deletions js/tabber.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
var title = $(this).attr('title');
e.preventDefault();
if (history.pushState) {
history.pushState(null, null, '#' + title);
history.pushState(null, null, '#' + encodeURIComponent(title));
switchTab(title);
} else {
location.hash = '#' + title;
location.hash = '#' + encodeURIComponent(title);
}
});

Expand All @@ -55,7 +55,7 @@
});

function switchTab(event) {
var tab = decodeURI(location.hash.replace('#', ''));
var tab = decodeURIComponent(location.hash.replace('#', ''));
if (!tab.length) {
showContent(tabContent.first().attr('title'));
}
Expand Down
27 changes: 0 additions & 27 deletions karma.conf.js

This file was deleted.

Loading

0 comments on commit 057d03d

Please sign in to comment.