Jelajahi Sumber

[core] Add the Hue version to the Require load URL

Enrico Berti 9 tahun lalu
induk
melakukan
ae1109b
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      desktop/core/src/desktop/templates/require.mako

+ 3 - 0
desktop/core/src/desktop/templates/require.mako

@@ -15,6 +15,7 @@
 ## limitations under the License.
 <%!
 from desktop.conf import DJANGO_DEBUG_MODE
+from django.conf import settings
 DEBUG = DJANGO_DEBUG_MODE.get()
 %>
 
@@ -28,6 +29,8 @@ DEBUG = DJANGO_DEBUG_MODE.get()
     require.config({
       %if DEBUG:
       urlArgs: "bust=" + (new Date()).getTime(),
+      %else:
+      urlArgs: "version=${settings.HUE_DESKTOP_VERSION}",
       %endif
       baseUrl: "${ static('') }",
       paths: {