my apologies for not being clear.
what I would like to achieve to use your code and add our custom icon. e.g.
$(document).ready(function() {
addMenuItem3('Accessibility', 'https://activatelearningonline.test.instructure.com/courses/4989','<svg xmlns="http://www.w3.org/2000/svg" class="ic-icon-svg menu-item__icon svg-icon-lifepreserver" version="1.1" x="0" y="0" viewBox="0 0 230 230 " enable-background="new 0 0 230 230"xml:space="preserve" fill="transparent" stroke="white" stroke-width="2"> <path d="M 152.50,90.12 C 146.00,92.00 136.50,94.38 131.50,95.25 122.75,96.75 121.88,96.62 104.00,92.12 93.88,89.62 84.38,87.50 82.88,87.50 78.75,87.50 75.50,93.00 77.25,96.88 78.38,99.25 81.12,100.62 91.50,103.75 116.88,111.38 114.38,110.00 114.75,117.00 115.38,127.25 112.63,138.50 104.25,159.50 99.88,170.62 96.25,180.12 96.25,180.88 96.25,181.50 97.63,183.38 99.25,184.88 101.63,187.12 103.12,187.62 105.62,187.00 108.50,186.25 110.25,183.50 116.63,170.00 120.88,161.12 124.62,153.75 125.00,153.75 125.38,153.75 128.75,160.62 132.50,168.88 140.25,186.12 143.12,189.12 148.62,186.12 153.50,183.38 153.25,179.62 147.12,165.00 139.00,145.75 135.25,133.12 134.38,122.25 133.38,110.62 133.00,111.00 153.75,105.00 171.12,100.00 175.75,95.87 171.00,89.75 168.25,86.38 164.75,86.38 152.50,90.12 Z M 115.50,65.50 C 112.00,69.00 111.25,70.75 111.25,75.00 111.25,79.25 112.00,81.00 115.50,84.50 119.00,88.00 120.75,88.75 125.00,88.75 129.25,88.75 131.00,88.00 134.50,84.50 138.00,81.00 138.75,79.25 138.75,75.00 138.75,70.75 138.00,69.00 134.50,65.50 131.00,62.00 129.25,61.25 125.00,61.25 120.75,61.25 119.00,62.00 115.50,65.50 Z M 101.12,27.50 C 82.50,32.12 66.12,41.50 53.00,55.25 34.12,74.88 25.00,97.62 25.00,125.00 25.00,152.38 34.12,175.12 53.00,194.75 85.75,229.00 139.25,235.12 179.50,209.38 208.00,191.12 225.00,159.62 225.00,125.00 225.00,77.87 194.00,38.37 148.25,27.50 134.88,24.25 114.25,24.25 101.12,27.50 Z M 148.12,35.75 C 180.12,44.12 205.62,69.75 214.50,102.50 217.50,113.50 217.50,136.38 214.50,147.50 205.88,179.88 179.88,205.88 147.50,214.50 136.50,217.50 113.50,217.50 102.50,214.50 70.25,206.00 44.13,179.88 35.50,147.50 32.50,136.38 32.50,113.50 35.50,102.50 45.62,65.62 74.88,39.50 113.12,33.25 119.75,32.25 140.38,33.62 148.12,35.75 Z" /></svg>');
});
or using the code presented by Douglas Brace from 23/04/19 in this thread but would need to add the custom tray