Monitors List : copy stream url completely

cron-as-worker-process
Moe 2022-06-23 18:08:57 -07:00
parent a3b23e7633
commit 069c91d3cc
2 changed files with 5 additions and 2 deletions

View File

@ -72,7 +72,10 @@ function base64ArrayBuffer(arrayBuffer) {
return base64
}
function getLocationPathName(){
return location.pathname.endsWith('/') ? location.pathname : location.pathname
return location.pathname.endsWith('/') ? location.pathname : location.pathname + '/'
}
function getFullOrigin(){
return location.origin + getLocationPathName()
}
function debugLog(...args){
console.log(...args)

View File

@ -214,7 +214,7 @@ $(document).ready(function(){
.on('click','.copy-stream-url',function(e){
e.preventDefault()
var el = $(this)
var href = el.attr('href')
var href = getFullOrigin() + el.attr('href')
copyToClipboard(href)
new PNotify({
title: lang['Copied'],