Fix #969 issue with installing plugins in China
Fix potential issue where logo is visible through interface
This commit is contained in:
parent
a6e7ae8733
commit
db9a370b81
@ -12,11 +12,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid var(--color-frame);
|
border: 2px solid var(--color-frame);
|
||||||
border-top: none;
|
border-top: none;
|
||||||
opacity: 1;
|
|
||||||
transition: opacity 0.1s linear;
|
|
||||||
}
|
}
|
||||||
#page_wrapper.hidden {
|
#page_wrapper.hidden {
|
||||||
opacity: 0;
|
display: none;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
background-image: url('../assets/logo_cutout.svg');
|
background-image: url('../assets/logo_cutout.svg');
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
var onUninstall, onInstall;
|
var onUninstall, onInstall;
|
||||||
const Plugins = {
|
const Plugins = {
|
||||||
apipath: 'https://raw.githubusercontent.com/JannisX11/blockbench-plugins/master/plugins.json',
|
|
||||||
Vue: [], //Vue Object
|
Vue: [], //Vue Object
|
||||||
installed: [], //Simple List of Names
|
installed: [], //Simple List of Names
|
||||||
json: undefined, //Json from website
|
json: undefined, //Json from website
|
||||||
@ -112,7 +111,7 @@ class Plugin {
|
|||||||
}
|
}
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
var file = originalFs.createWriteStream(Plugins.path+this.id+'.js')
|
var file = originalFs.createWriteStream(Plugins.path+this.id+'.js')
|
||||||
https.get('https://raw.githubusercontent.com/JannisX11/blockbench-plugins/master/plugins/'+this.id+'.js', function(response) {
|
https.get('https://cdn.jsdelivr.net/gh/JannisX11/blockbench-plugins/plugins/'+this.id+'.js', function(response) {
|
||||||
response.pipe(file);
|
response.pipe(file);
|
||||||
response.on('end', function() {
|
response.on('end', function() {
|
||||||
setTimeout(async function() {
|
setTimeout(async function() {
|
||||||
@ -367,7 +366,7 @@ if (isApp) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Plugins.loading_promise = new Promise((resolve, reject) => {
|
Plugins.loading_promise = new Promise((resolve, reject) => {
|
||||||
$.getJSON(Plugins.apipath, function(data) {
|
$.getJSON('https://cdn.jsdelivr.net/gh/JannisX11/blockbench-plugins/plugins.json', function(data) {
|
||||||
Plugins.json = data
|
Plugins.json = data
|
||||||
resolve();
|
resolve();
|
||||||
Plugins.loading_promise.resolved = true;
|
Plugins.loading_promise.resolved = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user