mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
Put an error in the console if the discourseEmbedUrl is relative
This commit is contained in:
parent
e1d358ffbf
commit
c40d8d37dd
|
@ -11,6 +11,10 @@
|
|||
var queryParams = {};
|
||||
|
||||
if (DE.discourseEmbedUrl) {
|
||||
if (DE.discourseEmbedUrl.indexOf('/') === 0) {
|
||||
console.error("discourseEmbedUrl must be a full URL, not a relative path");
|
||||
}
|
||||
|
||||
queryParams.embed_url = encodeURIComponent(DE.discourseEmbedUrl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user