Convert Studio JS to use require.js
This commit is contained in:
@@ -22,9 +22,9 @@ window.isExternal = function (url) {
|
||||
// Utility method for replacing a portion of a string.
|
||||
window.rewriteStaticLinks = function(content, from, to) {
|
||||
if (from === null || to === null) {
|
||||
return content
|
||||
return content;
|
||||
}
|
||||
|
||||
var regex = new RegExp(from, 'g');
|
||||
return content.replace(regex, to)
|
||||
return content.replace(regex, to);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user