Skip to content

Commit

Permalink
Fix trying to copy URLs upon saving
Browse files Browse the repository at this point in the history
  • Loading branch information
icc committed May 8, 2019
1 parent 5d7b480 commit b9a1e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/h5p.js
Original file line number Diff line number Diff line change
Expand Up @@ -2552,7 +2552,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
// Update file URLs and reset content Ids
recursiveUpdate(clipboardData.specific, function (path) {
var isTmpFile = (path.substr(-4, 4) === '#tmp');
if (!isTmpFile && clipboardData.contentId) {
if (!isTmpFile && clipboardData.contentId && !path.match(/^https?:\/\//i)) {
// Comes from existing content

if (H5PEditor.contentId) {
Expand Down

0 comments on commit b9a1e5f

Please sign in to comment.