Skip to content

Commit

Permalink
add delay and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sc committed Oct 21, 2024
1 parent ca88c17 commit 9e68939
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions extensions/google-meet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Google Meet Changelog

## [Improvement] - {PR_MERGE_DATE}

- Add delay before reading meeting URL from browser

## [Improvement] - 2024-07-19

- Change the way to get the URL in some Chromium-based browsers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const ProfileList: FC = () => {
const onSelect = useCallback(async (email: string) => {
try {
await openMeetTabSelectedProfile(email);

await new Promise(r => setTimeout(r, 500));
const meetTab = await getMeetTab();

await Clipboard.copy(meetTab.split("?")[0]);
Expand Down
2 changes: 1 addition & 1 deletion extensions/google-meet/src/default-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getMeetTab, openMeetTabDefaultProfile } from "./helpers";
export default async function main() {
try {
await openMeetTabDefaultProfile();

await new Promise(r => setTimeout(r, 500));
const meetTab = await getMeetTab();

await Clipboard.copy(meetTab);
Expand Down
4 changes: 2 additions & 2 deletions extensions/google-meet/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export async function getOpenedBrowser() {
export async function getMeetTab(): Promise<string> {
const activeUrls = await getOpenTabs();
const meetTab = activeUrls.split(",").find((url) => url.includes("meet.google.com"));
console.log(meetTab)
if (meetTab?.includes("/new") || meetTab === undefined) {

if (meetTab?.includes("/new")) {
return await getMeetTab();
}

Expand Down

0 comments on commit 9e68939

Please sign in to comment.