mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: Implement Trace page (#500)
This commit is contained in:
@@ -18,7 +18,12 @@
|
||||
import { ElNotification } from "element-plus";
|
||||
|
||||
export default (text: string): void => {
|
||||
if (location.protocol === "http:") {
|
||||
if (!text) {
|
||||
return;
|
||||
}
|
||||
// Clipboard functionality is restricted in production HTTP environments for security reasons.
|
||||
// In development, clipboard is allowed even over HTTP to ease testing.
|
||||
if (process.env.NODE_ENV === "production" && location.protocol === "http:") {
|
||||
ElNotification({
|
||||
title: "Warning",
|
||||
message: "Clipboard is not supported in HTTP environments",
|
||||
|
Reference in New Issue
Block a user