Skip to content

Commit f57fb1f

Browse files
Minor reformats (#48)
1 parent 7eea5fa commit f57fb1f

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/background.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ async function gitpodifyCurrentTab() {
1919

2020
browser.browserAction.onClicked.addListener(gitpodifyCurrentTab)
2121

22-
browser.runtime.onInstalled.addListener(details => {
23-
if (details.reason == "install") {
22+
browser.runtime.onInstalled.addListener((details) => {
23+
if (details.reason === "install") {
2424
window.open("https://www.gitpod.io/extension-activation/");
2525
}
2626
});

src/gitpodify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const injectedByUserClick = (): boolean => {
7070
}
7171

7272
const updateOnDOMChanges = (injector: Injector) => {
73-
observer = new MutationObserver(function (mutations) {
73+
observer = new MutationObserver(() => {
7474
if (!injector.checkIsInjected() && !isInstalling) {
7575
isInstalling = true;
7676
injector.update()

src/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ export function renderGitpodUrl(gitpodURL: string): string {
44
}
55

66
export function makeOpenInPopup(a: HTMLAnchorElement): void {
7-
a.onclick = () => {
8-
var w = window.open(a.href, a.target, 'menubar=no,toolbar=no,location=no,dependent');
9-
return !w;
10-
}
7+
a.onclick = () => !window.open(a.href, a.target, 'menubar=no,toolbar=no,location=no,dependent');
118
}

0 commit comments

Comments
 (0)