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)
|
||||
- [Daniel Hartung](https://github.com/dhartung)
|
||||
- [Ryan Hartzell](https://github.com/ryan-hartzell)
|
||||
- [Thibault Nocchi](https://github.com/ThibaultNocchi)
|
||||
|
||||
# Emby Contributors
|
||||
|
||||
|
|
|
@ -351,9 +351,9 @@ define(["apphost", "globalize", "connectionManager", "itemHelper", "appRouter",
|
|||
toast(globalize.translate("CopyStreamURLSuccess"));
|
||||
});
|
||||
}, function () {
|
||||
console.error("Failed to copy to clipboard");
|
||||
prompt(globalize.translate("CopyStreamURL"), downloadHref);
|
||||
require(["toast"], function (toast) {
|
||||
toast(globalize.translate("CopyStreamURLError"));
|
||||
toast(globalize.translate("CopyStreamURLSuccess"));
|
||||
});
|
||||
});
|
||||
getResolveFunction(resolve, id)();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue