Skip to content

Commit

Permalink
Return consistent value in load plugins method
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyR committed Dec 4, 2018
1 parent 6268450 commit f2a13c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ <h2>Test drive</h2>
{
var plugin = components.plugins[pluginName];
if (!plugin){
return;
return Promise.resolve();
}

var pluginPath = components.plugins.meta.path;
Expand All @@ -302,7 +302,7 @@ <h2>Test drive</h2>
$u.script(pluginPath + '.js', function() {
this.setAttribute('data-type', 'plugin');

var hasCss = !!!plugin.noCSS;
var hasCss = !!plugin.noCSS;

if (hasCss) {
var style = document.createElement('link');
Expand Down

0 comments on commit f2a13c9

Please sign in to comment.