Fix #1940 desktop only plugins with with URL query

Fix start screen slideshow not working on older browsers
This commit is contained in:
Jannis 2023-07-09 11:13:12 +02:00
parent 4499aa9880
commit 81c2cecb3a
2 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ onVueSetup(function() {
this.updateThumbnails();
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;
if (slideshow_timer == 24) {

View File

@ -80,7 +80,7 @@ async function loadInfoFromURL() {
if (Blockbench.queries.plugins) {
let plugin_ids = Blockbench.queries.plugins.split(/,/);
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) {
await new Promise(resolve => {
let form = {