Clothing and clipboard update
QBClothing and ESKSkin working. Need others (WIP) Copy to clipboard now a utility function. Will json encode if ~= string
This commit is contained in:
1 parent
b9f5a3ed64
commit
d4908042be
16 files changed
+1306
-44
No files matched your search
@@ -9,4 +9,23 @@
|
||||
<div id="root"></div>
|
||||
<script type="module" src="./src/main.jsx"></script>
|
||||
</body>
|
||||
<script>
|
||||
// dont judge me
|
||||
const copyToClipboard = (str) => {
|
||||
const el = document.createElement("textarea");
|
||||
el.value = str;
|
||||
document.body.appendChild(el);
|
||||
el.select();
|
||||
document.execCommand("copy");
|
||||
document.body.removeChild(el);
|
||||
};
|
||||
|
||||
window.addEventListener("message", (event) => {
|
||||
if (event?.data?.type === "copytoclipboard") {
|
||||
var str = event.data.text;
|
||||
copyToClipboard(str);
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in new issue
Block a user