Skip to content

Commit de28e9e

Browse files
Martinmartinkaintas
Martin
authored andcommitted
feat: build extension with ionic
1 parent 0717cc1 commit de28e9e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Superhero",
33
"description": "Superhero Wallet",
44
"manifest_version": 2,
5-
"content_security_policy": "default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'sha256-BCCVwoZgDUk/cw+Ln2/t3z9bm8qy+sICaZP5BWQIyUg='; connect-src *; font-src * data:; img-src * data:; style-src-elem *",
5+
"content_security_policy": "default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'sha256-BCCVwoZgDUk/cw+Ln2/t3z9bm8qy+sICaZP5BWQIyUg='; connect-src *; font-src * data:; img-src * data:; style-src-elem * 'sha256-3ewiyoPIApyJinIIn0TnP8UgpcBBGPZRuflC7DYK6K0='",
66
"applications": {
77
"gecko": {
88
"strict_min_version": "53.0"

src/popup/App.vue

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export default defineComponent({
127127
'--height',
128128
IS_MOBILE_APP && IS_IOS ? '100vh' : '100%',
129129
);
130+
if (IS_EXTENSION) {
131+
document.documentElement.classList.add('is-extension');
132+
}
130133
}
131134
132135
async function checkExtensionUpdates() {

src/styles/global.scss

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
}
1515
}
1616

17+
html.is-extension {
18+
width: $extension-width;
19+
height: $extension-height;
20+
}
21+
1722
html,
1823
body,
1924
#app {

0 commit comments

Comments
 (0)