mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-05 23:40:13 +01:00
Merge pull request #325 from dingedi/feature/auto-translate-url
run translation if text is in url
This commit is contained in:
commit
eb0df4d0df
@ -419,6 +419,7 @@ function handleLangsResponse(self, response) {
|
|||||||
|
|
||||||
if (defaultText) {
|
if (defaultText) {
|
||||||
self.inputText = decodeURI(defaultText)
|
self.inputText = decodeURI(defaultText)
|
||||||
|
self.handleInput(new Event('none'))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.error = "Cannot load /languages";
|
self.error = "Cannot load /languages";
|
||||||
|
Loading…
Reference in New Issue
Block a user