Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298850

Error JS

$
0
0

Problem/Motivation

In the console, I got this Error message :
Uncaught SyntaxError: missing ) after argument list js_cco9Nn3xgrPaNEVffsoy-G1xVV-JGqZqwhutac9Uazo.js:415:99

Steps to reproduce

Proposed resolution

When I look a the line :
return "<div class=\"media-embed-error media-embed-error--preview-error\">".concat(Drupal.t(''Une erreur s\'est produite lors de la prévisualisation du média. Sauvegardez votre travail et chargez à nouveau cette page, s\'il vous plaît !'), "</div>");

After concat(Drupal.t( we got 2 single quotes before the text. I think you need to remove one.

This line is related to https://www.drupal.org/node/2815083

Here is the complete code with this line :

/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/

(function (Drupal) {
  Drupal.theme.mediaEmbedPreviewError = function () {
    return "<div class=\"media-embed-error media-embed-error--preview-error\">".concat(Drupal.t(''Une erreur s\'est produite lors de la prévisualisation du média. Sauvegardez votre travail et chargez à nouveau cette page, s\'il vous plaît !'), "</div>");
  };
})(Drupal);;

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 298850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>