Skip to content

Commit

Permalink
fix: Add the same cozy-* attributes as the targets/browser
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Crash-- committed Nov 14, 2023
1 parent 8bc4cb6 commit a242ff4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/targets/intents/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@
<body>
<div
role="application"
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-icon-path="{{.IconPath}}"
>
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) { %>
<script src="<%- file %>"></script>
<% }); %>
Expand Down

0 comments on commit a242ff4

Please sign in to comment.