mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix #1940 desktop only plugins with with URL query
Fix start screen slideshow not working on older browsers
This commit is contained in:
parent
4499aa9880
commit
81c2cecb3a
@ -329,7 +329,7 @@ onVueSetup(function() {
|
|||||||
this.updateThumbnails();
|
this.updateThumbnails();
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
if (this.show_splash_screen && this.slideshow_autoplay && this.$el.checkVisibility()) {
|
if (this.show_splash_screen && this.slideshow_autoplay && this.$el.offsetParent) {
|
||||||
slideshow_timer += 1;
|
slideshow_timer += 1;
|
||||||
|
|
||||||
if (slideshow_timer == 24) {
|
if (slideshow_timer == 24) {
|
||||||
|
@ -80,7 +80,7 @@ async function loadInfoFromURL() {
|
|||||||
if (Blockbench.queries.plugins) {
|
if (Blockbench.queries.plugins) {
|
||||||
let plugin_ids = Blockbench.queries.plugins.split(/,/);
|
let plugin_ids = Blockbench.queries.plugins.split(/,/);
|
||||||
let plugins = plugin_ids.map(id => Plugins.all.find(plugin => plugin.id == id))
|
let plugins = plugin_ids.map(id => Plugins.all.find(plugin => plugin.id == id))
|
||||||
.filter(p => p instanceof Plugin && p.installed == false && p.isInstallable());
|
.filter(p => p instanceof Plugin && p.installed == false && p.isInstallable() == true);
|
||||||
if (plugins.length) {
|
if (plugins.length) {
|
||||||
await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
let form = {
|
let form = {
|
||||||
|
Loading…
Reference in New Issue
Block a user