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

@ -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)();