Fallback method to copy URL in unsupported cases
This commit is contained in:
@@ -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)();
|
||||
|
||||
Reference in New Issue
Block a user