Skip to content

Commit

Permalink
Fix code scanning alert no. 20: Unsafe jQuery plugin
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
alex-w and github-advanced-security[bot] committed Sep 28, 2024
1 parent 3915b13 commit 337588e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/RemoteControl/webroot/js/jquery-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,7 @@ $.fn.position = function( options ) {
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,

// Make sure string options are treated as CSS selectors
target = typeof options.of === "string" ?
$( document ).find( options.of ) :
$( options.of ),
target = $( document ).find( options.of ),

within = $.position.getWithinInfo( options.within ),
scrollInfo = $.position.getScrollInfo( within ),
Expand Down

0 comments on commit 337588e

Please sign in to comment.