瀏覽代碼

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

Enrico Berti 9 年之前
父節點
當前提交
ae1109b
共有 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.
 <%!
 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: {