-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mirotalk] - update config, improvements, update dep
- Loading branch information
1 parent
b8d7fa0
commit 0fd2260
Showing
7 changed files
with
25 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ dependencies: { | |
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.38 | ||
* @version 1.4.39 | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.38 | ||
* @version 1.4.39 | ||
* | ||
*/ | ||
|
||
|
@@ -5630,14 +5630,12 @@ function setupMySettings() { | |
}); | ||
|
||
// handle Shortcuts | ||
if (!isDesktopDevice) { | ||
if (!isDesktopDevice || !buttons.settings.showShortcutsBtn) { | ||
elemDisplay(tabShortcutsBtn, false); | ||
setKeyboardShortcuts(false); | ||
} else { | ||
switchShortcuts.addEventListener('change', (e) => { | ||
isShortcutsEnabled = e.currentTarget.checked; | ||
lsSettings.keyboard_shortcuts = isShortcutsEnabled; | ||
lS.setSettings(lsSettings); | ||
const status = isShortcutsEnabled ? 'enabled' : 'disabled'; | ||
const status = setKeyboardShortcuts(e.currentTarget.checked); | ||
userLog('toast', `Keyboard shortcuts ${status}`); | ||
playSound('switch'); | ||
}); | ||
|
@@ -5697,6 +5695,18 @@ function setupMySettings() { | |
} | ||
} | ||
|
||
/** | ||
* Set Keyboard Shortcuts enabled | ||
* @param {boolean} enabled | ||
* @return {String} enabled/disabled | ||
*/ | ||
function setKeyboardShortcuts(enabled){ | ||
isShortcutsEnabled = enabled; | ||
lsSettings.keyboard_shortcuts = isShortcutsEnabled; | ||
lS.setSettings(lsSettings); | ||
return isShortcutsEnabled ? 'enabled' : 'disabled'; | ||
} | ||
|
||
/** | ||
* Load settings from local storage | ||
*/ | ||
|
@@ -10918,7 +10928,7 @@ function showAbout() { | |
Swal.fire({ | ||
background: swBg, | ||
position: 'center', | ||
title: '<strong>WebRTC P2P v1.4.38</strong>', | ||
title: '<strong>WebRTC P2P v1.4.39</strong>', | ||
imageAlt: 'mirotalk-about', | ||
imageUrl: images.about, | ||
customClass: { image: 'img-about' }, | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters