Enabled webviewTag, added webview page

This commit is contained in:
booploops 2021-12-07 01:33:18 -08:00
parent 9a6ec6b85f
commit 1dbb1c6a34
4 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,11 @@ const app = new Vue({
radio: {
personal: []
},
webview: {
url: "",
title: "",
loading: false
},
showingPlaylist: [],
artistPage: {
data: {},

View file

@ -201,6 +201,9 @@
<transition name="wpfade">
<%- include('pages/artist') %>
</transition>
<transition name="wpfade">
<%- include('pages/webview') %>
</transition>
<!-- Playlist / Album page-->
<transition name="wpfade">
<template v-if="page.includes('playlist_')">

View file

@ -0,0 +1,5 @@
<template v-if="page == 'webview'">
<div style="display:flex;width:100%;height:100%">
<webview id="foo" :src="webview.url" style="display:inline-flex; width:100%;"></webview>
</div>
</template>

View file

@ -29,6 +29,7 @@ const CiderBase = {
vibrancy: 'dark',
hasShadow: false,
webPreferences: {
webviewTag: true,
plugins: true,
nodeIntegration: true,
nodeIntegrationInWorker: false,