SDL: emscripten: use emscripten_set_window_title api

From 55af8dcad95dd71d398b2dd7eeca31dafd2416e0 Mon Sep 17 00:00:00 2001
From: Joseph Kogut <[EMAIL REDACTED]>
Date: Wed, 27 Feb 2019 14:16:37 -0800
Subject: [PATCH] emscripten: use emscripten_set_window_title api

---
 src/video/emscripten/SDL_emscriptenvideo.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/video/emscripten/SDL_emscriptenvideo.c b/src/video/emscripten/SDL_emscriptenvideo.c
index a376b50098..be29dfdcc9 100644
--- a/src/video/emscripten/SDL_emscriptenvideo.c
+++ b/src/video/emscripten/SDL_emscriptenvideo.c
@@ -352,12 +352,7 @@ Emscripten_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * di
 
 static void
 Emscripten_SetWindowTitle(_THIS, SDL_Window * window) {
-    EM_ASM_INT({
-      if (typeof setWindowTitle !== 'undefined') {
-        setWindowTitle(UTF8ToString($0));
-      }
-      return 0;
-    }, window->title);
+    emscripten_set_window_title(window->title);
 }
 
 #endif /* SDL_VIDEO_DRIVER_EMSCRIPTEN */