Merge branch 'master' of github.com:samcm/synclounge
This commit is contained in:
commit
0f4258fc83
|
@ -22,7 +22,7 @@ root.use((req, res, next) => {
|
|||
});
|
||||
const ptserver = express();
|
||||
|
||||
const PORT = process.env.server_port || 8089;
|
||||
const PORT = process.env.SERVER_PORT || 8089;
|
||||
|
||||
// Setup our PTServer
|
||||
|
||||
|
|
|
@ -47,14 +47,6 @@
|
|||
</v-layout>
|
||||
</div>
|
||||
</v-card>
|
||||
<v-dialog v-model="popupBlockerDialog" max-width="650px" :onClose="() => this.popupBlockerDialog = false">
|
||||
<v-card style="background-color: #151924" class="pa-3">
|
||||
<div class="text-xs-center">
|
||||
It appears that your browser is blocking popups.<br />
|
||||
Please enable popups for this site and try again.
|
||||
</div>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</template>
|
||||
|
@ -83,7 +75,6 @@ export default {
|
|||
ready: false,
|
||||
openedWindow: null,
|
||||
authError: null,
|
||||
popupBlockerDialog: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
@ -128,17 +119,11 @@ export default {
|
|||
newWindow = window.open(this.url, '_blank');
|
||||
}
|
||||
|
||||
if (!newWindow) {
|
||||
clearInterval(this.ticker);
|
||||
this.popupBlockerDialog = true;
|
||||
}
|
||||
else {
|
||||
// Puts focus on the newWindow
|
||||
if (window.focus) {
|
||||
newWindow.focus();
|
||||
}
|
||||
this.openedWindow = newWindow;
|
||||
// Puts focus on the newWindow
|
||||
if (window.focus) {
|
||||
newWindow.focus();
|
||||
}
|
||||
this.openedWindow = newWindow;
|
||||
},
|
||||
async setAuth(authToken) {
|
||||
window.localStorage.setItem('plexuser', JSON.stringify({ authToken: authToken }));
|
||||
|
|
Loading…
Reference in New Issue