Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Commit c027d3b

Browse files
Fix SWF URL
1 parent 625176e commit c027d3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

script/custom-soundmanager2-nodebug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/*global window, SM2_DEFER, sm2Debugger, console, document, navigator, setTimeout, setInterval, clearInterval, Audio, opera, module, define */
1515
/*jslint regexp: true, sloppy: true, white: true, nomen: true, plusplus: true, todo: true */
1616

17-
(function(window, _undefined) {
17+
$(function(window, _undefined) {
1818
"use strict";
1919
if (!window || !window.document) {
2020
throw new Error('SoundManager requires a browser with window and document objects.');
@@ -2735,7 +2735,7 @@ featureCheck = function() {
27352735
}
27362736
// SM2_DEFER details: http://www.schillmania.com/projects/soundmanager2/doc/getstarted/#lazy-loading
27372737
if (window.SM2_DEFER === _undefined || !SM2_DEFER) {
2738-
soundManager2 = new SoundManager('/plugins/soundmanager/swf/soundmanager2_flash9.swf');
2738+
soundManager2 = new SoundManager('/swf/soundmanager2_flash9.swf');
27392739
}
27402740
if (typeof module === 'object' && module && typeof module.exports === 'object') {
27412741
module.exports.SoundManager = SoundManager;

script/soundmanager2-nodebug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/*global window, SM2_DEFER, sm2Debugger, console, document, navigator, setTimeout, setInterval, clearInterval, Audio, opera, module, define */
1515
/*jslint regexp: true, sloppy: true, white: true, nomen: true, plusplus: true, todo: true */
1616

17-
(function(window, _undefined) {
17+
$(function(window, _undefined) {
1818
"use strict";
1919
if (!window || !window.document) {
2020
throw new Error('SoundManager requires a browser with window and document objects.');
@@ -2736,7 +2736,7 @@ featureCheck = function() {
27362736
}
27372737
// SM2_DEFER details: http://www.schillmania.com/projects/soundmanager2/doc/getstarted/#lazy-loading
27382738
if (window.SM2_DEFER === _undefined || !SM2_DEFER) {
2739-
soundManager = new SoundManager('/plugins/soundmanager/swf/soundmanager2_flash9.swf');
2739+
soundManager = new SoundManager('/swf/soundmanager2_flash9.swf');
27402740
}
27412741
if (typeof module === 'object' && module && typeof module.exports === 'object') {
27422742
module.exports.SoundManager = SoundManager;

0 commit comments

Comments
 (0)