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:
parent
74530fe4d9
commit
4bea999849
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue