free-translate icon indicating copy to clipboard operation
free-translate copied to clipboard

Not working on server

Open ghost opened this issue 1 year ago • 1 comments

why its not working on server-side, its showing timeOut

ghost avatar Jun 04 '23 16:06 ghost

why its not working on server-side, its showing timeOut

From line 38 to line 78 they used "document" object which created "When an HTML document is loaded into a web browser, it becomes a document object." and on server side, web browser is not exist, "document" is NOT exist too. So if you want get data from google translate page, firstly call a http request to get response's content then parse that content by using html parser or jsdom library.

Lyn203 avatar Jul 03 '23 04:07 Lyn203