mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Extensively use startsWith() (#17540)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
var queryParams = {};
|
||||
|
||||
if (DE.discourseEmbedUrl) {
|
||||
if (DE.discourseEmbedUrl.indexOf("/") === 0) {
|
||||
if (DE.discourseEmbedUrl.startsWith("/")) {
|
||||
console.error(
|
||||
"discourseEmbedUrl must be a full URL, not a relative path"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user