| @@ -190,9 +190,9 @@ | ||
| 190 | 190 | 'title' => __( 'Corkboard', 'desktop-mode' ), |
| 191 | 191 | 'icon' => $icon_uri, |
| 192 | 192 | 'template' => 'openstation_content_graph_render_template', |
| 193 | 193 | 'script' => 'desktop-mode-content-graph', |
| 194 | - 'style' => 'desktop-mode-content-graph', | |
| 194 | + 'styles' => array( 'desktop-mode-content-graph' ), | |
| 195 | 195 | 'width' => 1080, |
| 196 | 196 | 'height' => 720, |
| 197 | 197 | 'min_width' => 720, |
| 198 | 198 | 'min_height' => 480, |
| @@ -244,16 +244,4 @@ | ||
| 244 | 244 | |
| 245 | 245 | openstation_register_icon( 'desktop-mode-content-graph', $icon_args ); |
| 246 | 246 | } |
| 247 | 247 | add_action( 'init', 'openstation_content_graph_register_window', 20 ); |
| 248 | - | |
| 249 | -/** | |
| 250 | - * Enqueue the bundle's CSS in admin context. The script is lazy- | |
| 251 | - * loaded by the native-window sync. | |
| 252 | - */ | |
| 253 | -function openstation_content_graph_enqueue_styles() { | |
| 254 | - if ( ! openstation_content_graph_user_can_use() ) { | |
| 255 | - return; | |
| 256 | - } | |
| 257 | - wp_enqueue_style( 'desktop-mode-content-graph' ); | |
| 258 | -} | |
| 259 | -add_action( 'admin_enqueue_scripts', 'openstation_content_graph_enqueue_styles', 30 ); | |