Closed sungho-cho closed 2 years ago
@chorongi Because, in the future, we might want to make API calls on page load from the content script (without pop up). For instance, users could see automatically generated summary on certain websites (e.g. CNN, Medium, etc.). In that case, we could utilize the wretch call that's already implemented in the background script.
types.ts
Updates:
lambda_function.py
Popup.tsx
wretch().res()
instead ofwretch().json()
in order to access the response codewretch().error()
for TODO PR