All files / web/bundles/pimuser/js init-signin.js

83.33% Statements 10/12
75% Branches 6/8
100% Functions 2/2
83.33% Lines 10/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23    1183x   1183x 1183x 1183x   1183x 73x     73x 73x 73x     73x          
'use strict';
 
define(['jquery'],
    function ($) {
        return function () {
            var hashUrl = window.location.hash;
            var hashUrlTag = '#';
            var hashArray;
            if (hashUrl.length && hashUrl.match(hashUrlTag)) {
                Iif (hashUrl.indexOf('|') !== -1) {
                    hashUrl = hashUrl.substring(0, hashUrl.indexOf('|'));
                }
                hashUrl = hashUrl.replace(hashUrlTag, '');
                hashArray = hashUrl.split('php');
                Iif (hashArray[1]) {
                    hashUrl = hashArray[1];
                }
                $('input[name="_target_path"]').val(hashUrl);
            }
        }
    }
);