nextcloudpi/ncp-app/js/script.js
2019-01-12 10:57:05 -07:00

7 lines
209 B
JavaScript

// open the NCP web panel
var url = window.location.protocol + '//' + window.location.hostname + ':4443';
if ( !window.open( url, '_blank' ) ) // try to open in a new tab first
window.location.href = url;