mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: dalle2
This commit is contained in:
5
src-tauri/src/assets/cmd.js
vendored
5
src-tauri/src/assets/cmd.js
vendored
@@ -75,6 +75,11 @@ function init() {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
@media screen and (max-width: 767px) {
|
||||
#download-png-button, #download-pdf-button, #download-html-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
document.head.append(styleDom);
|
||||
|
||||
|
||||
2
src-tauri/src/assets/dalle2.core.js
vendored
2
src-tauri/src/assets/dalle2.core.js
vendored
@@ -1,6 +1,8 @@
|
||||
// *** Core Script - DALL·E 2 Core ***
|
||||
|
||||
async function init() {
|
||||
const chatConf = await invoke('get_chat_conf') || {};
|
||||
if (!chatConf.dalle2_search) return;
|
||||
if (!window.FloatingUIDOM) return;
|
||||
|
||||
const styleDom = document.createElement('style');
|
||||
|
||||
Reference in New Issue
Block a user