Skip to content

Commit

Permalink
- Fixes a bug with programs hidden from the hotlist logging you out.
Browse files Browse the repository at this point in the history
- Removes a CSS fix that was implemented by KA.
  • Loading branch information
MatthiasPortzel committed Dec 5, 2019
1 parent dccaea1 commit eea1dff
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "The Khan Academy Extension",
"short_name": "The KA Extension",
"version": "4.7.1",
"version": "4.7.2",
"description": "A Browser Extension for Khan Academy that adds more features to the site",
"minimum_chrome_version": "33.0.1750",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ka-extension-ts",
"version": "4.7.1",
"version": "4.7.2",
"description": "A chrome extension for the Khan Academy Computer Programming section",
"private": true,
"scripts": {
Expand Down
9 changes: 9 additions & 0 deletions resources/update-log.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "4.7.2",
"new": [
"Nothing"
],
"fixes": [
"Removes checking if your program is \"Completely\" hidden, to fix an issue where viewing programs hidden from the hotlist would log you out."
]
},
{
"version": "4.7.1",
"new": [
Expand Down
4 changes: 2 additions & 2 deletions src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ function addProgramInfo (program: Program, uok: string): void {

const statusTd = hiddenRow.querySelector(".kae-td:last-child") as HTMLElement;
if (hidden) {
const programShowAPI = "https://www.khanacademy.org/api/internal/show_scratchpad?projection={}&scratchpad_id=";
/*const programShowAPI = "https://www.khanacademy.org/api/internal/show_scratchpad?projection={}&scratchpad_id=";
fetch(programShowAPI + program.id).then((response: Response): void => {
if (response.status === 404) {
statusTd.innerHTML = "Completely";
statusTd.style.color = "red";
}
}).catch(console.error);
}).catch(console.error);*/

statusTd.style.color = "orange";
} else if (approved) {
Expand Down
4 changes: 0 additions & 4 deletions styles/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ body ._1wnf0g1k:hover {
}

/** Profile tweaks **/
/*Fix a small UI bug with the Edit Profile button*/
#nav-container .user-card-edit-menu {
top: 0;
}

/*Style for the Projects link we add to the left sidebar on a profile*/
.kae-projects-profile-link {
Expand Down

0 comments on commit eea1dff

Please sign in to comment.