1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fallback method to copy URL in unsupported cases

This commit is contained in:
Thibault Nocchi 2020-02-01 17:28:04 +01:00
parent 74530fe4d9
commit 4bea999849
2 changed files with 3 additions and 2 deletions

View file

@ -32,6 +32,7 @@
- [bilde2910](https://github.com/bilde2910) - [bilde2910](https://github.com/bilde2910)
- [Daniel Hartung](https://github.com/dhartung) - [Daniel Hartung](https://github.com/dhartung)
- [Ryan Hartzell](https://github.com/ryan-hartzell) - [Ryan Hartzell](https://github.com/ryan-hartzell)
- [Thibault Nocchi](https://github.com/ThibaultNocchi)
# Emby Contributors # Emby Contributors

View file

@ -351,9 +351,9 @@ define(["apphost", "globalize", "connectionManager", "itemHelper", "appRouter",
toast(globalize.translate("CopyStreamURLSuccess")); toast(globalize.translate("CopyStreamURLSuccess"));
}); });
}, function () { }, function () {
console.error("Failed to copy to clipboard"); prompt(globalize.translate("CopyStreamURL"), downloadHref);
require(["toast"], function (toast) { require(["toast"], function (toast) {
toast(globalize.translate("CopyStreamURLError")); toast(globalize.translate("CopyStreamURLSuccess"));
}); });
}); });
getResolveFunction(resolve, id)(); getResolveFunction(resolve, id)();