From a242ff466082a8842c9bbbcbcd4a58442621b4d9 Mon Sep 17 00:00:00 2001 From: Crash-- Date: Tue, 7 Nov 2023 15:52:24 +0100 Subject: [PATCH] fix: Add the same cozy-* attributes as the targets/browser Because Harvest is based on `cozySubdomainType` and we didn't have it in this template, it didn't work in the intents. So I added the same attributes as the browser ones. --- src/targets/intents/index.ejs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/targets/intents/index.ejs b/src/targets/intents/index.ejs index c0670e5a3d..6c5e3781d9 100644 --- a/src/targets/intents/index.ejs +++ b/src/targets/intents/index.ejs @@ -15,16 +15,11 @@
+ data-cozy="{{.CozyData}}" data-cozy-token="{{.Token}}" data-cozy-domain="{{.Domain}}" + data-cozy-locale="{{.Locale}}" data-cozy-app-editor="{{.AppEditor}}" data-cozy-app-name="{{.AppName}}" + data-cozy-app-name-prefix="{{.AppNamePrefix}}" data-cozy-app-slug="{{.AppSlug}}" data-cozy-tracking="{{.Tracking}}" + data-cozy-icon-path="{{.IconPath}}" data-cozy-subdomain-type="{{.SubDomain}}" + data-cozy-default-wallpaper="{{.DefaultWallpaper}}" data-cozy-flags="{{.Flags}}"> <% _.forEach(htmlWebpackPlugin.files.js, function(file) { %> <% }); %>