Skip to content

Commit 3784469

Browse files
committed
rm language, update version tov2.1.1, add problems by company screenshot
1 parent d85047b commit 3784469

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Leetcode Explained",
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"description": "Adds company tags, video solutions and GPT code analysis into Leetcode problems.",
66
"icons": {
77
"16": "src/assets/images/logo/icon-16.png",
Loading
Loading

src/background/background.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ chrome.runtime.onInstalled.addListener(() => {
2525
});
2626

2727
// Default settings
28-
chrome.storage.local.set({ language: 'python' });
2928
chrome.storage.local.set({ fontSize: 14 });
3029
chrome.storage.local.set({ showCompanyTags: true });
3130
chrome.storage.local.set({ showExamples: true });

src/content-script/get-user-code.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ function getCode() {
2727
return textArray;
2828
}
2929

30-
3130
// On get user code request, read & send the code as a response
3231
chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
3332
if (request.type === 'getCode') {
3433
sendResponse({ data: getCode() });
3534
}
35+
if (request.type === 'getCodeComplexity') {
36+
sendResponse({ data: getCodeComplexity() })
37+
}
3638
});
3739

src/popup/popup.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const storageKeys: { [key: string]: string } = {
2929
analyzeCodeResponse: 'analyzeCodeResponse',
3030
fixCodeResponse: 'fixCodeResponse',
3131
lastAction: 'lastAction',
32-
language: 'language',
3332
currentLeetCodeProblemTitle: 'currentLeetCodeProblemTitle',
3433
};
3534

@@ -235,11 +234,6 @@ async function main(): Promise<void> {
235234
}
236235
});
237236

238-
// get language from storage and set the classname of the code block to it
239-
chrome.storage.local.get('language', function (data) {
240-
fixCodeResponse && fixCodeResponse.classList.add('language-' + data.language);
241-
});
242-
243237
// get name of current tab and set info message to it if its a leetcode problem
244238
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
245239
const tab = tabs[0];

0 commit comments

Comments
 (0)