1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2025-12-06 06:03:20 +00:00

Fixed IDER on IE.

This commit is contained in:
Ylian Saint-Hilaire
2020-07-22 18:18:31 -07:00
parent 9a0bce6bb9
commit 060f012d91
8 changed files with 144 additions and 76 deletions

View File

@@ -103,4 +103,5 @@ function random(max) { return Math.floor(Math.random() * max); }
// Trademarks
function trademarks(x) { return x.replace(/\(R\)/g, '®').replace(/\(TM\)/g, '™'); }
// Format
function format(format) { var args = Array.prototype.slice.call(arguments, 1); return format.replace(/{(\d+)}/g, function (match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };