Skip to content

Commit

Permalink
var outside of try/catch. Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschiller committed May 21, 2017
1 parent 1adf91f commit 1ed91ef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions script/soundmanager2.js
Expand Up @@ -4986,14 +4986,12 @@ function SoundManager(smURL, smID) {
var hasPlugin = false, n = navigator, obj, type, types, AX = window.ActiveXObject;

// MS Edge 14 throws an "Unspecified Error" because n.plugins is inaccessible due to permissions
var nP;

try {

var nP = n.plugins;

nP = n.plugins;
} catch (e) {

var nP = undefined;

nP = undefined;
}

if (nP && nP.length) {
Expand Down

0 comments on commit 1ed91ef

Please sign in to comment.