Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-app/js/script.js')
-rw-r--r--ncp-app/js/script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ncp-app/js/script.js b/ncp-app/js/script.js
new file mode 100644
index 00000000..22755e89
--- /dev/null
+++ b/ncp-app/js/script.js
@@ -0,0 +1,6 @@
+// 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;