Skip to content

Commit

Permalink
Пошли вы нахуй со своим CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoCat committed Aug 9, 2022
1 parent 5dfbebf commit 4870d10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"name": "aurora-launcher",
"version": "0.0.3",
"description": "Launcher for Minecraft",
"main": "main/index.js"
}
5 changes: 0 additions & 5 deletions src/renderer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<html lang="ru">
<head>
<meta charset="UTF-8" />
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'unsafe-inline'; style-src-elem 'unsafe-inline' fonts.googleapis.com; font-src 'unsafe-inline' fonts.gstatic.com"
/>
</head>
<body>
<div id="app">
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/runtime/components/SkinViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<script lang="ts">
import Vue from 'vue';
import { SkinViewer, WalkingAnimation, createOrbitControls } from 'skinview3d';
import defaultSkin from '../assets/images/steve.png';
export default Vue.extend({
props: ['url'],
Expand All @@ -13,7 +14,7 @@ export default Vue.extend({
canvas: <HTMLCanvasElement>this.$refs.skinContainer,
width: 180,
height: 360,
skin: this.url || 'runtime/assets/images/steve.png',
skin: this.url || defaultSkin,
});
skinViewer.camera.position.x = -25;
Expand Down

0 comments on commit 4870d10

Please sign in to comment.