Merge pull request #8 from YR1044/patch-1

vmoptions自动复制
This commit is contained in:
NotoChen 2024-06-27 17:29:59 +08:00 committed by GitHub
commit 50e2134ab8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,9 +33,14 @@ $(document).ready(function() {
// Function to show VM options
window.showVmoptins = function () {
alert("-javaagent:/(Your Path)/ja-netfilter/ja-netfilter.jar\n" +
var text = "-javaagent:/(Your Path)/ja-netfilter/ja-netfilter.jar\n" +
"--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED\n" +
"--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED");
"--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED";
navigator.clipboard.writeText(text).then(function() {
alert("已复制:\n" + text);
}).catch(function(error) {
alert("复制失败: " + error);
});
};
// Function to copy license