Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/other-playground-v2-part1' int…
Browse files Browse the repository at this point in the history
…o rari-next
  • Loading branch information
fiji-flo committed Nov 17, 2024
2 parents 9d0541a + 9041c73 commit ddf431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/play/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const ORIGIN_PLAY_SUFFIX = `.${ORIGIN_PLAY}`;
*/
function playSubdomain(hostname) {
if (hostname.endsWith(ORIGIN_PLAY_SUFFIX)) {
return hostname.split(0, -1 * ORIGIN_PLAY_SUFFIX.length);
return hostname.slice(0, -1 * ORIGIN_PLAY_SUFFIX.length);
}
return "";
}
Expand Down

0 comments on commit ddf431f

Please sign in to comment.