mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Fix undefined variable
This commit is contained in:
parent
6e72186d1f
commit
242d07ce30
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ $(function() {
|
||||||
let test_content = $('<div class="rhymix_content xe_content"></div>').hide().appendTo($(document.body));
|
let test_content = $('<div class="rhymix_content xe_content"></div>').hide().appendTo($(document.body));
|
||||||
let test_styles = window.getComputedStyle(test_content[0], null);
|
let test_styles = window.getComputedStyle(test_content[0], null);
|
||||||
if (test_styles && test_styles.getPropertyValue) {
|
if (test_styles && test_styles.getPropertyValue) {
|
||||||
default_font = test_styles.getPropertyValue('font-family');
|
let default_font = test_styles.getPropertyValue('font-family');
|
||||||
if (default_font) {
|
if (default_font) {
|
||||||
config.default_font = $.trim(default_font.split(',')[0].replace(/['"]/g, ''));
|
config.default_font = $.trim(default_font.split(',')[0].replace(/['"]/g, ''));
|
||||||
config.css_content = '.rhymix_content.editable { font-family:' + default_font + '; } ' + config.css_content;
|
config.css_content = '.rhymix_content.editable { font-family:' + default_font + '; } ' + config.css_content;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue