Browse Source

Fix to ensure correct URLs on OSX

Sumit Maitra 11 năm trước cách đây
mục cha
commit
d72e68f0cd
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      MediaBrowser.WebDashboard/Api/DashboardService.cs

+ 5 - 1
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -161,7 +161,11 @@ namespace MediaBrowser.WebDashboard.Api
         /// <returns>System.String.</returns>
         private string GetDashboardResourcePath(string virtualPath)
         {
-            return Path.Combine(DashboardUIPath, virtualPath.Replace('/', '\\'));
+			#if __MonoCS__
+			return Path.Combine(DashboardUIPath, virtualPath);
+			#else
+			return Path.Combine(DashboardUIPath, virtualPath.Replace('/', '\\'));
+			#endif
         }
 
         /// <summary>