Переглянути джерело

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

Enrico Berti 9 роки тому
батько
коміт
ae1109b25d
1 змінених файлів з 3 додано та 0 видалено
  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.
 ## limitations under the License.
 <%!
 <%!
 from desktop.conf import DJANGO_DEBUG_MODE
 from desktop.conf import DJANGO_DEBUG_MODE
+from django.conf import settings
 DEBUG = DJANGO_DEBUG_MODE.get()
 DEBUG = DJANGO_DEBUG_MODE.get()
 %>
 %>
 
 
@@ -28,6 +29,8 @@ DEBUG = DJANGO_DEBUG_MODE.get()
     require.config({
     require.config({
       %if DEBUG:
       %if DEBUG:
       urlArgs: "bust=" + (new Date()).getTime(),
       urlArgs: "bust=" + (new Date()).getTime(),
+      %else:
+      urlArgs: "version=${settings.HUE_DESKTOP_VERSION}",
       %endif
       %endif
       baseUrl: "${ static('') }",
       baseUrl: "${ static('') }",
       paths: {
       paths: {